Struct zbus_polkit::policykit1::ActionDescription
source · [−]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
sourceimpl Debug for ActionDescription
impl Debug for ActionDescription
sourceimpl<'de> Deserialize<'de> for ActionDescription
impl<'de> Deserialize<'de> for ActionDescription
sourcefn 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
sourceimpl Serialize for ActionDescription
impl Serialize for ActionDescription
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<'de, T> DynamicDeserialize<'de> for T where
T: Type + Deserialize<'de> + ?Sized,
impl<'de, T> DynamicDeserialize<'de> for T where
T: Type + Deserialize<'de> + ?Sized,
type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
sourcefn 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>,
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.
sourceimpl<T> DynamicType for T where
T: Type + ?Sized,
impl<T> DynamicType for T where
T: Type + ?Sized,
sourcefn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more