pub struct ProvidedSecret { /* private fields */ }Expand description
A provider value and the absolute time at which the value itself expires.
None means the provider does not know a validity bound; it does not mean
the value is permanent. Cache freshness is owned by the resolver and is not
represented here.
Implementations§
Source§impl ProvidedSecret
impl ProvidedSecret
pub fn new(value: String, expires_at_unix_ms: Option<u64>) -> Self
pub fn value(&self) -> &str
pub const fn expires_at_unix_ms(&self) -> Option<u64>
Sourcepub fn with_revision(self, revision: Option<Revision>) -> Self
pub fn with_revision(self, revision: Option<Revision>) -> Self
Attach non-secret identity/version metadata from the same read (0.21+).
pub fn revision(&self) -> Option<&Revision>
Trait Implementations§
Source§impl Clone for ProvidedSecret
impl Clone for ProvidedSecret
Auto Trait Implementations§
impl Freeze for ProvidedSecret
impl RefUnwindSafe for ProvidedSecret
impl Send for ProvidedSecret
impl Sync for ProvidedSecret
impl Unpin for ProvidedSecret
impl UnsafeUnpin for ProvidedSecret
impl UnwindSafe for ProvidedSecret
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