[][src]Struct zbus_polkit::policykit1::TemporaryAuthorization

pub struct TemporaryAuthorization {
    pub id: String,
    pub action_id: String,
    pub subject: Subject,
    pub time_obtained: u64,
    pub time_expires: u64,
}

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

impl Debug for TemporaryAuthorization[src]

impl<'de> Deserialize<'de> for TemporaryAuthorization[src]

impl Type for TemporaryAuthorization[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.