[][src]Struct zbus_polkit::policykit1::AuthorizationResult

pub struct AuthorizationResult {
    pub is_authorized: bool,
    pub is_challenge: bool,
    pub details: HashMap<String, String>,
}

Describes the result of calling CheckAuthorization()

Fields

is_authorized: bool

TRUE if the given Subject is authorized for the given action.

is_challenge: bool

TRUE if the given Subject could be authorized if more information was provided, and CheckAuthorizationFlags::AllowUserInteraction wasn't passed or no suitable authentication agent was available.

details: HashMap<String, String>

Details for the result. Known key/value-pairs include polkit.temporary_authorization_id (if the authorization is temporary, this is set to the opaque temporary authorization id), polkit.retains_authorization_after_challenge (Set to a non-empty string if the authorization will be retained after authentication (if is_challenge is TRUE)), polkit.dismissed (Set to a non-empty string if the authentication dialog was dismissed by the user).

Trait Implementations

impl Debug for AuthorizationResult[src]

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

impl Serialize for AuthorizationResult[src]

impl Type for AuthorizationResult[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.