Struct zbus_polkit::policykit1::TemporaryAuthorization
source · pub struct TemporaryAuthorization {
pub id: String,
pub action_id: String,
pub subject: Subject,
pub time_obtained: u64,
pub time_expires: u64,
}
Expand description
Details of a temporary authorization as provided by the /org/freedesktop/PolicyKit1/Authority object in the system bus.
Fields§
§id: String
An opaque identifier for the temporary authorization.
action_id: String
The action the temporary authorization is for.
subject: Subject
The subject the temporary authorization is for.
time_obtained: u64
When the temporary authorization was obtained, in seconds since the Epoch Jan 1, 1970 0:00 UTC. Note that the PolicyKit daemon is using monotonic time internally so the returned value may change if system time changes.
time_expires: u64
When the temporary authorization is set to expire, in seconds since the Epoch Jan 1, 1970 0:00 UTC. Note that the PolicyKit daemon is using monotonic time internally so the returned value may change if system time changes.
Trait Implementations§
source§impl Debug for TemporaryAuthorization
impl Debug for TemporaryAuthorization
source§impl<'de> Deserialize<'de> for TemporaryAuthorization
impl<'de> Deserialize<'de> for TemporaryAuthorization
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
Auto Trait Implementations§
impl RefUnwindSafe for TemporaryAuthorization
impl Send for TemporaryAuthorization
impl Sync for TemporaryAuthorization
impl Unpin for TemporaryAuthorization
impl UnwindSafe for TemporaryAuthorization
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
§impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de> + ?Sized,
impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de> + ?Sized,
§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
§impl<T> DynamicType for Twhere
T: Type + ?Sized,
impl<T> DynamicType for Twhere
T: Type + ?Sized,
§fn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more