pub struct ControlLease {Show 13 fields
pub lease_id: String,
pub revision: u64,
pub session_id: String,
pub principal_id: String,
pub agent_id: Option<String>,
pub kind: String,
pub execution_mode: ExecutionMode,
pub state: String,
pub acquired_at: Option<String>,
pub expires_at: String,
pub action_budget: u32,
pub actions_used: u32,
pub boundaries: LeaseBoundaries,
}Expand description
One-writer desktop control lease.
Fields§
§lease_id: StringUnique lease identifier.
revision: u64Monotonic lease revision.
session_id: StringThe session that holds the lease.
principal_id: StringThe principal that holds the lease.
agent_id: Option<String>Optional agent identifier holding the lease.
kind: StringLease kind (e.g. exclusive, cooperative).
execution_mode: ExecutionModeExecution mode the lease authorizes.
state: StringLease state (e.g. active).
acquired_at: Option<String>RFC 3339 acquisition timestamp, when active.
expires_at: StringRFC 3339 expiry timestamp.
action_budget: u32Maximum number of actions the lease permits.
actions_used: u32Actions used against the lease so far.
boundaries: LeaseBoundariesBoundaries restricting the lease scope.
Trait Implementations§
Source§impl Clone for ControlLease
impl Clone for ControlLease
Source§fn clone(&self) -> ControlLease
fn clone(&self) -> ControlLease
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ControlLease
impl Debug for ControlLease
Source§impl<'de> Deserialize<'de> for ControlLease
impl<'de> Deserialize<'de> for ControlLease
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ControlLease
impl PartialEq for ControlLease
Source§impl Serialize for ControlLease
impl Serialize for ControlLease
impl StructuralPartialEq for ControlLease
Auto Trait Implementations§
impl Freeze for ControlLease
impl RefUnwindSafe for ControlLease
impl Send for ControlLease
impl Sync for ControlLease
impl Unpin for ControlLease
impl UnsafeUnpin for ControlLease
impl UnwindSafe for ControlLease
Blanket Implementations§
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
Mutably borrows from an owned value. Read more