Skip to main content

Module validate

Module validate 

Source

Enums§

AccessRequestWindowError
Errors from validating an AccessRequestCreateRequest before it is sent to the server.

Constants§

DEFAULT_REQUEST_ACCESS_DURATION_SECONDS
Duration, in seconds, to pre-select when the pre-check response names no default; mirrors the server’s global default.
MAX_REQUEST_ACCESS_WINDOW_SECONDS
Maximum span, in seconds, of an access request’s activation window - mirrors the server’s LeaseDurationBounds.GlobalMaxSeconds (one year). Applies to both the automatic path’s duration_seconds and the human path’s start/end span.

Functions§

default_request_access_duration_seconds
DEFAULT_REQUEST_ACCESS_DURATION_SECONDS, for callers that cannot read a Rust const.
max_request_access_window_seconds
MAX_REQUEST_ACCESS_WINDOW_SECONDS, for callers that cannot read a Rust const.