pub struct AccessPreCheckResponseModel {
pub object: Option<String>,
pub cipher_id: Option<Uuid>,
pub approval_mode: Option<AccessApprovalMode>,
pub has_active_lease: Option<bool>,
pub default_duration_seconds: Option<i32>,
pub max_duration_seconds: Option<i32>,
pub can_start_lease: Option<bool>,
pub slot_frees_at: Option<String>,
}Expand description
AccessPreCheckResponseModel : The resolved approval outcome for a cipher, without submitting a request — lets the client present the right workflow (pick a duration vs. pick a window and justify) before the requester commits.
Fields§
§object: Option<String>§cipher_id: Option<Uuid>§approval_mode: Option<AccessApprovalMode>§has_active_lease: Option<bool>True when the caller already holds an active lease: reveal the credential, no request needed.
default_duration_seconds: Option<i32>The duration, in seconds, the request form should pre-select: the governing rule’s default, or the global default, clamped to Bit.Services.Pam.Api.Models.Response.AccessPreCheckResponseModel.MaxDurationSeconds.
max_duration_seconds: Option<i32>The longest duration (automatic path) or window span (human path), in seconds, that a request for this cipher may ask for: the governing rule’s cap narrowed by the global ceiling. Submit enforces the same limit.
can_start_lease: Option<bool>Whether access could be started right now. False only when the per-cipher single-active-lease constraint binds for this caller and another member holds the slot. A hint, re-checked at start; an absent value means true.
slot_frees_at: Option<String>When the lease holding the slot ends. Null when Bit.Services.Pam.Api.Models.Response.AccessPreCheckResponseModel.CanStartLease is true.
Implementations§
Source§impl AccessPreCheckResponseModel
impl AccessPreCheckResponseModel
Sourcepub fn new() -> AccessPreCheckResponseModel
pub fn new() -> AccessPreCheckResponseModel
The resolved approval outcome for a cipher, without submitting a request — lets the client present the right workflow (pick a duration vs. pick a window and justify) before the requester commits.
Trait Implementations§
Source§impl Clone for AccessPreCheckResponseModel
impl Clone for AccessPreCheckResponseModel
Source§fn clone(&self) -> AccessPreCheckResponseModel
fn clone(&self) -> AccessPreCheckResponseModel
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AccessPreCheckResponseModel
impl Debug for AccessPreCheckResponseModel
Source§impl Default for AccessPreCheckResponseModel
impl Default for AccessPreCheckResponseModel
Source§fn default() -> AccessPreCheckResponseModel
fn default() -> AccessPreCheckResponseModel
Source§impl<'de> Deserialize<'de> for AccessPreCheckResponseModel
impl<'de> Deserialize<'de> for AccessPreCheckResponseModel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl StructuralPartialEq for AccessPreCheckResponseModel
Auto Trait Implementations§
impl Freeze for AccessPreCheckResponseModel
impl RefUnwindSafe for AccessPreCheckResponseModel
impl Send for AccessPreCheckResponseModel
impl Sync for AccessPreCheckResponseModel
impl Unpin for AccessPreCheckResponseModel
impl UnsafeUnpin for AccessPreCheckResponseModel
impl UnwindSafe for AccessPreCheckResponseModel
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Arc<> Read more