pub struct PasswordSecret(/* private fields */);Expand description
Redacted PDF password secret.
Implementations§
Source§impl PasswordSecret
impl PasswordSecret
Sourcepub fn new(value: impl Into<String>) -> Result<Self, ConfigError>
pub fn new(value: impl Into<String>) -> Result<Self, ConfigError>
Creates a password secret using the default password byte cap.
§Errors
Returns ConfigError when the password exceeds the default cap.
Sourcepub fn new_with_limit(
value: impl Into<String>,
max_bytes: usize,
) -> Result<Self, ConfigError>
pub fn new_with_limit( value: impl Into<String>, max_bytes: usize, ) -> Result<Self, ConfigError>
Creates a password secret using an explicit byte cap.
§Errors
Returns ConfigError when the password exceeds the supplied cap or the
cap is above the hard limit.
Trait Implementations§
Source§impl Clone for PasswordSecret
impl Clone for PasswordSecret
Source§fn clone(&self) -> PasswordSecret
fn clone(&self) -> PasswordSecret
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PasswordSecret
impl RefUnwindSafe for PasswordSecret
impl Send for PasswordSecret
impl Sync for PasswordSecret
impl Unpin for PasswordSecret
impl UnsafeUnpin for PasswordSecret
impl UnwindSafe for PasswordSecret
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