Skip to main content

ResolvedCredential

Struct ResolvedCredential 

Source
pub struct ResolvedCredential {
    pub record_version: String,
    pub expires_at_ms: Option<i64>,
    pub account_id: Option<String>,
    pub email: Option<String>,
    pub org_name: Option<String>,
    pub auth: Option<AuthDescriptor>,
    pub hosts: Option<Vec<String>>,
    pub invalid_key: Option<InvalidKeyEvidence>,
    pub base_url: Option<String>,
    pub headers: Option<BTreeMap<String, String>>,
    /* private fields */
}

Fields§

§record_version: String§expires_at_ms: Option<i64>§account_id: Option<String>

Provider account identifier returned by the vault, when known.

§email: Option<String>

Provider account email returned by the vault, when captured.

§org_name: Option<String>

Provider organization name returned by the vault, when captured (OAuth logins that report one; static API keys carry none).

§auth: Option<AuthDescriptor>

Read-time provider metadata, absent on older vaults and non-provider records.

§hosts: Option<Vec<String>>§invalid_key: Option<InvalidKeyEvidence>§base_url: Option<String>

API root for a gateway credential; absent for ordinary provider keys.

§headers: Option<BTreeMap<String, String>>

Fixed non-secret request headers, including an empty map on gateways without any.

Implementations§

Source§

impl ResolvedCredential

Source

pub fn new( payload: Vec<u8>, record_version: String, expires_at_ms: Option<i64>, ) -> Self

Source

pub fn expose(&self) -> &[u8] ⓘ

Trait Implementations§

Source§

impl Debug for ResolvedCredential

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Drop for ResolvedCredential

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more

Auto Trait Implementations§

§

impl Forget for ResolvedCredential

§

impl Freeze for ResolvedCredential
where *const u8 is !null: Freeze, PhantomData<u8>: Freeze, PhantomData<String>: Freeze, *const LeafNode<String, String> is !null: Freeze, PhantomData<(Owned, LeafOrInternal)>: Freeze, PhantomData<Box<(String, String)>>: Freeze,

§

impl Move for ResolvedCredential

§

impl RefUnwindSafe for ResolvedCredential

§

impl Send for ResolvedCredential
where RawVecInner: Send, NodeRef<Owned, String, String, LeafOrInternal>: Send, BoxRaw<(String, String)>: Send,

§

impl Sync for ResolvedCredential
where RawVecInner: Sync, NodeRef<Owned, String, String, LeafOrInternal>: Sync, BoxRaw<(String, String)>: Sync,

§

impl Unpin for ResolvedCredential
where *const u8 is !null: Unpin, *const LeafNode<String, String> is !null: Unpin, Box<(String, String)>: Unpin,

§

impl UnsafeUnpin for ResolvedCredential

§

impl UnwindSafe for ResolvedCredential
where RawVecInner: UnwindSafe, BTreeMap<String, String>: UnwindSafe,

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> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> Same for T

Source§

type Output = T

Should always be Self
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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more