Struct zbus_polkit::policykit1::ActionDescription [−][src]
pub struct ActionDescription {
pub action_id: String,
pub description: String,
pub message: String,
pub vendor_name: String,
pub vendor_url: String,
pub icon_name: String,
pub implicit_any: ImplicitAuthorization,
pub implicit_inactive: ImplicitAuthorization,
pub implicit_active: ImplicitAuthorization,
pub annotations: HashMap<String, String>,
}
Expand description
This struct describes actions registered with the PolicyKit daemon.
Fields
action_id: String
Action Identifier.
description: String
Localized description of the action.
message: String
Localized message to be displayed when making the user authenticate for an action.
vendor_name: String
Name of the provider of the action or the empty string.
vendor_url: String
A URL pointing to a place with more information about the action or the empty string.
icon_name: String
The themed icon describing the action or the empty string if no icon is set.
implicit_any: ImplicitAuthorization
A value from the ImplicitAuthorization. enumeration for implicit authorizations that apply to any Subject.
implicit_inactive: ImplicitAuthorization
A value from the ImplicitAuthorization. enumeration for implicit authorizations that apply any Subject in an inactive user session on the local console.
implicit_active: ImplicitAuthorization
A value from the ImplicitAuthorization. enumeration for implicit authorizations that apply any Subject in an active user session on the local console.
annotations: HashMap<String, String>
Annotations for the action.
Trait Implementations
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 ActionDescription
impl Send for ActionDescription
impl Sync for ActionDescription
impl Unpin for ActionDescription
impl UnwindSafe for ActionDescription
Blanket Implementations
Mutably borrows from an owned value. Read more
type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
pub fn deserializer_for_signature<S>(
signature: S
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error> where
S: TryInto<Signature<'de>>,
<S as TryInto<Signature<'de>>>::Error: Into<Error>,
pub fn deserializer_for_signature<S>(
signature: S
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error> where
S: TryInto<Signature<'de>>,
<S as TryInto<Signature<'de>>>::Error: Into<Error>,
Get a deserializer compatible with this signature.
Get the signature for the implementing type. Read more