pub struct ObjectType(/* private fields */);Expand description
Validated ObjectType domain primitive.
Implementations§
Source§impl ObjectType
impl ObjectType
Sourcepub fn new(value: impl Into<String>) -> Result<Self, DomainError>
pub fn new(value: impl Into<String>) -> Result<Self, DomainError>
Creates a validated ObjectType.
§Errors
Returns DomainError when the value is empty, too long, or contains bytes outside
the identifier allowlist.
Trait Implementations§
Source§impl Clone for ObjectType
impl Clone for ObjectType
Source§fn clone(&self) -> ObjectType
fn clone(&self) -> ObjectType
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 ObjectType
impl Debug for ObjectType
Source§impl<'de> Deserialize<'de> for ObjectType
Available on crate feature serde only.
impl<'de> Deserialize<'de> for ObjectType
Available on crate feature
serde only.Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ObjectType
impl Display for ObjectType
impl Eq for ObjectType
Source§impl From<&ObjectType> for SubjectType
impl From<&ObjectType> for SubjectType
Source§fn from(value: &ObjectType) -> Self
fn from(value: &ObjectType) -> Self
Converts to this type from the input type.
Source§impl FromStr for ObjectType
impl FromStr for ObjectType
Source§impl Hash for ObjectType
impl Hash for ObjectType
Source§impl Ord for ObjectType
impl Ord for ObjectType
Source§fn cmp(&self, other: &ObjectType) -> Ordering
fn cmp(&self, other: &ObjectType) -> 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 ObjectType
impl PartialEq for ObjectType
Source§impl PartialOrd for ObjectType
impl PartialOrd for ObjectType
Source§impl Serialize for ObjectType
Available on crate feature serde only.
impl Serialize for ObjectType
Available on crate feature
serde only.impl StructuralPartialEq for ObjectType
Source§impl TryFrom<&str> for ObjectType
impl TryFrom<&str> for ObjectType
Auto Trait Implementations§
impl Freeze for ObjectType
impl RefUnwindSafe for ObjectType
impl Send for ObjectType
impl Sync for ObjectType
impl Unpin for ObjectType
impl UnsafeUnpin for ObjectType
impl UnwindSafe for ObjectType
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