pub struct UnlockGrant {
pub scope: String,
pub label: Option<String>,
pub expires_at: DateTime<Utc>,
}Expand description
One live unlock grant — every client.unlock: <scope> job is listed for
the caller until expires_at.
Grants are held per OS user (the connection’s SID), not per
connection: the Client App reconnects on its own (a pipe hiccup, a
restart), and silently re-locking mid-support-call would be a
baffling failure mode. support.status lets a reconnecting client
recover the banner without re-asking for the code.
Fields§
§scope: StringThe client.unlock scope this grant opens (support, admin, …).
label: Option<String>Operator-supplied human label for the code that opened it (from
ServerSettings::support_codes[].label), so the Client App banner
can read「サポートモード(ヘルプデスク)」rather than a bare slug.
None when the operator left it unset.
expires_at: DateTime<Utc>When the grant lapses on its own. The Client App counts down to it
and re-locks its UI at zero; the agent enforces it independently at
every jobs.list / jobs.execute, so a client that ignores the
deadline gains nothing.
Trait Implementations§
Source§impl Clone for UnlockGrant
impl Clone for UnlockGrant
Source§fn clone(&self) -> UnlockGrant
fn clone(&self) -> UnlockGrant
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 UnlockGrant
impl Debug for UnlockGrant
Source§impl<'de> Deserialize<'de> for UnlockGrant
impl<'de> Deserialize<'de> for UnlockGrant
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 Eq for UnlockGrant
Source§impl JsonSchema for UnlockGrant
impl JsonSchema for UnlockGrant
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for UnlockGrant
impl PartialEq for UnlockGrant
Source§impl Serialize for UnlockGrant
impl Serialize for UnlockGrant
impl StructuralPartialEq for UnlockGrant
Auto Trait Implementations§
impl Freeze for UnlockGrant
impl RefUnwindSafe for UnlockGrant
impl Send for UnlockGrant
impl Sync for UnlockGrant
impl Unpin for UnlockGrant
impl UnsafeUnpin for UnlockGrant
impl UnwindSafe for UnlockGrant
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.