logo
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

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Get the signature for the implementing type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

A DeserializeSeed implementation for this type.

Get a deserializer compatible with this signature.

Get the signature for the implementing type. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.