pub struct Secret { /* private fields */ }Expand description
One application-level secret declaration.
Implementations§
Source§impl Secret
impl Secret
Sourcepub const fn new(name: Identifier, ownership: ResourceOwnership) -> Self
pub const fn new(name: Identifier, ownership: ResourceOwnership) -> Self
Creates a secret declaration without guessing material or a runtime name.
Sourcepub const fn name(&self) -> &Identifier
pub const fn name(&self) -> &Identifier
Returns the neutral resource name.
Sourcepub const fn ownership(&self) -> ResourceOwnership
pub const fn ownership(&self) -> ResourceOwnership
Returns the resource lifecycle owner.
Sourcepub fn set_runtime_name(&mut self, name: Sourced<ProtectedString>)
pub fn set_runtime_name(&mut self, name: Sourced<ProtectedString>)
Sets a provider/runtime-level name distinct from the neutral resource key.
Sourcepub const fn runtime_name(&self) -> Option<&Sourced<ProtectedString>>
pub const fn runtime_name(&self) -> Option<&Sourced<ProtectedString>>
Returns the explicit provider/runtime-level name.
Sourcepub fn set_material(&mut self, material: Sourced<SecretMaterial>)
pub fn set_material(&mut self, material: Sourced<SecretMaterial>)
Sets the application-managed material source.
Sourcepub const fn material(&self) -> Option<&Sourced<SecretMaterial>>
pub const fn material(&self) -> Option<&Sourced<SecretMaterial>>
Returns the optional material source.
Trait Implementations§
impl Eq for Secret
impl StructuralPartialEq for Secret
Auto Trait Implementations§
impl Freeze for Secret
impl RefUnwindSafe for Secret
impl Send for Secret
impl Sync for Secret
impl Unpin for Secret
impl UnsafeUnpin for Secret
impl UnwindSafe for Secret
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