pub struct VersionedSecret { /* private fields */ }Expand description
Secret value returned together with its optional provider version.
Implementations§
Source§impl VersionedSecret
impl VersionedSecret
Sourcepub fn new(material: SecretMaterial, version: Option<SecretVersion>) -> Self
pub fn new(material: SecretMaterial, version: Option<SecretVersion>) -> Self
Creates a new VersionedSecret.
Sourcepub fn material(&self) -> &SecretMaterial
pub fn material(&self) -> &SecretMaterial
Returns the material.
Sourcepub fn into_material(self) -> SecretMaterial
pub fn into_material(self) -> SecretMaterial
Converts this value into material.
Sourcepub const fn version(&self) -> Option<SecretVersion>
pub const fn version(&self) -> Option<SecretVersion>
Returns the version.
Trait Implementations§
Auto Trait Implementations§
impl Forget for VersionedSecret
impl Freeze for VersionedSecret
impl Move for VersionedSecret
impl RefUnwindSafe for VersionedSecret
impl Send for VersionedSecretwhere
RawVecInner: Send,
impl Sync for VersionedSecretwhere
RawVecInner: Sync,
impl Unpin for VersionedSecret
impl UnsafeUnpin for VersionedSecret
impl UnwindSafe for VersionedSecretwhere
RawVecInner: UnwindSafe,
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