Skip to main content

HandOut

Struct HandOut 

Source
pub struct HandOut<'a> {
    pub value: Zeroizing<String>,
    pub host: &'a str,
    pub username: Option<&'a str>,
    pub decision: Decision,
}
Expand description

What a helper may be handed: the value, the secret’s own host (for the audit row) and the user name git sends with it.

Fields§

§value: Zeroizing<String>

The value to hand out.

§host: &'a str

The secret’s host.

§username: Option<&'a str>

The user name the helper gives with the value; None for AWS.

§decision: Decision

The allow decision to record.

Trait Implementations§

Source§

impl Debug for HandOut<'_>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Forget for HandOut<'a>

§

impl<'a> Freeze for HandOut<'a>

§

impl<'a> Move for HandOut<'a>

§

impl<'a> RefUnwindSafe for HandOut<'a>

§

impl<'a> Send for HandOut<'a>

§

impl<'a> Sync for HandOut<'a>

§

impl<'a> Unpin for HandOut<'a>

§

impl<'a> UnsafeUnpin for HandOut<'a>

§

impl<'a> UnwindSafe for HandOut<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.