pub struct Request { /* private fields */ }Implementations§
Source§impl Request
impl Request
pub fn new(environment: Environment, action: Action) -> Self
Sourcepub fn new_with_session(
environment: Environment,
action: Action,
session_id: String,
purpose: Option<String>,
) -> Self
pub fn new_with_session( environment: Environment, action: Action, session_id: String, purpose: Option<String>, ) -> Self
Like new, but tags the request with a per-CLI-process session
token and a human-readable purpose string. The agent uses the
session to coalesce Touch ID prompts so that a single bwx <command> invocation only pops one biometric dialog regardless
of how many Decrypt/Encrypt IPCs it fires; the purpose is
shown on the prompt itself.
pub fn into_parts(self) -> (Action, Environment, Option<String>, Option<String>)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
Source§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 Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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