pub struct SecretName(/* private fields */);Expand description
Validated logical secret name. The name cannot contain path separators or traversal segments.
Implementations§
Source§impl SecretName
impl SecretName
Sourcepub fn new(
value: impl Into<CheetahString>,
) -> Result<Self, SecurityContractViolation>
pub fn new( value: impl Into<CheetahString>, ) -> Result<Self, SecurityContractViolation>
Validates and creates a secret name.
§Errors
Returns SecurityContractViolation::InvalidIdentifier when the value
violates the closed identifier grammar.
Trait Implementations§
Source§impl Clone for SecretName
impl Clone for SecretName
Source§impl Debug for SecretName
impl Debug for SecretName
impl Eq for SecretName
Source§impl Hash for SecretName
impl Hash for SecretName
Source§impl Ord for SecretName
impl Ord for SecretName
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for SecretName
impl PartialEq for SecretName
Source§impl PartialOrd for SecretName
impl PartialOrd for SecretName
impl StructuralPartialEq for SecretName
Auto Trait Implementations§
impl Freeze for SecretName
impl RefUnwindSafe for SecretName
impl Send for SecretName
impl Sync for SecretName
impl Unpin for SecretName
impl UnsafeUnpin for SecretName
impl UnwindSafe for SecretName
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