pub struct ParameterName(/* private fields */);Expand description
A validated job-parameter name.
Its Debug representation is redacted because parameter metadata is sensitive by default.
Implementations§
Source§impl ParameterName
impl ParameterName
Sourcepub fn new(value: impl Into<String>) -> Result<Self, DomainError>
pub fn new(value: impl Into<String>) -> Result<Self, DomainError>
Validates and constructs the name.
§Errors
Returns DomainError when the value is empty, too long, has
surrounding whitespace, or contains a control character.
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Returns the validated value.
Trait Implementations§
Source§impl AsRef<str> for ParameterName
impl AsRef<str> for ParameterName
Source§impl Borrow<str> for ParameterName
impl Borrow<str> for ParameterName
Source§impl Clone for ParameterName
impl Clone for ParameterName
Source§fn clone(&self) -> ParameterName
fn clone(&self) -> ParameterName
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 moreSource§impl Debug for ParameterName
impl Debug for ParameterName
Source§impl Display for ParameterName
impl Display for ParameterName
impl Eq for ParameterName
Source§impl Hash for ParameterName
impl Hash for ParameterName
Source§impl Ord for ParameterName
impl Ord for ParameterName
Source§fn cmp(&self, other: &ParameterName) -> Ordering
fn cmp(&self, other: &ParameterName) -> Ordering
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
Source§impl PartialEq for ParameterName
impl PartialEq for ParameterName
Source§impl PartialOrd for ParameterName
impl PartialOrd for ParameterName
impl StructuralPartialEq for ParameterName
Source§impl TryFrom<&str> for ParameterName
impl TryFrom<&str> for ParameterName
Auto Trait Implementations§
impl Freeze for ParameterName
impl RefUnwindSafe for ParameterName
impl Send for ParameterName
impl Sync for ParameterName
impl Unpin for ParameterName
impl UnsafeUnpin for ParameterName
impl UnwindSafe for ParameterName
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