pub enum IdValidationError {
Empty,
TooLong {
max: usize,
actual: usize,
},
ControlCharacter {
index: usize,
},
}Expand description
Enumerates the finite id validation error cases. Serialized names are part of the SDK contract; update fixtures when variants change.
Variants§
Empty
Use this variant when the contract needs to represent empty; selecting it has no side effect by itself.
TooLong
Use this variant when the contract needs to represent too long; selecting it has no side effect by itself.
Fields
ControlCharacter
Use this variant when the contract needs to represent control character; selecting it has no side effect by itself.
Trait Implementations§
Source§impl Clone for IdValidationError
impl Clone for IdValidationError
Source§fn clone(&self) -> IdValidationError
fn clone(&self) -> IdValidationError
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 IdValidationError
impl Debug for IdValidationError
Source§impl Display for IdValidationError
impl Display for IdValidationError
impl Eq for IdValidationError
Source§impl Error for IdValidationError
impl Error for IdValidationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for IdValidationError
impl PartialEq for IdValidationError
Source§fn eq(&self, other: &IdValidationError) -> bool
fn eq(&self, other: &IdValidationError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IdValidationError
Auto Trait Implementations§
impl Freeze for IdValidationError
impl RefUnwindSafe for IdValidationError
impl Send for IdValidationError
impl Sync for IdValidationError
impl Unpin for IdValidationError
impl UnsafeUnpin for IdValidationError
impl UnwindSafe for IdValidationError
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