[][src]Struct zbus_polkit::policykit1::Identity

pub struct Identity<'a> {
    pub identity_kind: &'a str,
    pub identity_details: &'a HashMap<&'a str, Value<'a>>,
}

This struct describes identities such as UNIX users and UNIX groups. It is typically used to check if a given process is authorized for an action.

The following kinds of identities are known:

  • Unix User. identity_kind should be set to unix-user with key uid (of type uint32).

  • Unix Group. identity_kind should be set to unix-group with key gid (of type uint32).

Fields

identity_kind: &'a stridentity_details: &'a HashMap<&'a str, Value<'a>>

Trait Implementations

impl<'a> Debug for Identity<'a>[src]

impl<'a> Serialize for Identity<'a>[src]

impl<'a> Type for Identity<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Identity<'a>

impl<'a> Send for Identity<'a>

impl<'a> Sync for Identity<'a>

impl<'a> Unpin for Identity<'a>

impl<'a> UnwindSafe for Identity<'a>

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> 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.