pub struct AuthRequest {
pub action_id: String,
pub message: String,
pub icon_name: String,
pub identities: Vec<String>,
pub state: AuthState,
pub info: Vec<String>,
pub errors: Vec<String>,
/* private fields */
}Expand description
A request from polkit: a program asked to do action_id, and polkit
wants a user to prove they may.
Fields§
§action_id: StringWhat was asked for, such as org.freedesktop.login1.reboot.
message: StringWhat to tell the user, in the shell’s language, at most 4 KiB.
icon_name: StringA themed icon for the action, or empty.
identities: Vec<String>The users who may answer, by name. The first is the one asked now;
PolkitAgent::pick_identity puts another first.
state: AuthStateWhere the conversation is.
info: Vec<String>What PAM told the user this try, such as to touch a key, oldest first. At most 16 lines of 4 KiB.
errors: Vec<String>What PAM said went wrong this try, oldest first, kept as info is.
Trait Implementations§
Source§impl Clone for AuthRequest
impl Clone for AuthRequest
Source§impl Debug for AuthRequest
impl Debug for AuthRequest
Source§impl PartialEq for AuthRequest
impl PartialEq for AuthRequest
impl StructuralPartialEq for AuthRequest
Auto Trait Implementations§
impl Forget for AuthRequest
impl Freeze for AuthRequest
impl Move for AuthRequest
impl RefUnwindSafe for AuthRequest
impl Send for AuthRequest
impl Sync for AuthRequest
impl Unpin for AuthRequest
impl UnsafeUnpin for AuthRequest
impl UnwindSafe for AuthRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more