pub struct StateSchemaId(/* private fields */);Expand description
A validated application-owned durable-state schema identifier.
Implementations§
Source§impl StateSchemaId
impl StateSchemaId
Sourcepub fn new(value: impl Into<String>) -> Result<Self, StateError>
pub fn new(value: impl Into<String>) -> Result<Self, StateError>
Validates a stable schema identifier.
§Errors
Returns a redacted StateError when the identifier is empty, exceeds
128 UTF-8 bytes, has surrounding whitespace, or contains a control
character.
Trait Implementations§
Source§impl Clone for StateSchemaId
impl Clone for StateSchemaId
Source§fn clone(&self) -> StateSchemaId
fn clone(&self) -> StateSchemaId
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 StateSchemaId
impl Debug for StateSchemaId
Source§impl Display for StateSchemaId
impl Display for StateSchemaId
impl Eq for StateSchemaId
Source§impl Hash for StateSchemaId
impl Hash for StateSchemaId
Source§impl Ord for StateSchemaId
impl Ord for StateSchemaId
Source§fn cmp(&self, other: &StateSchemaId) -> Ordering
fn cmp(&self, other: &StateSchemaId) -> 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 StateSchemaId
impl PartialEq for StateSchemaId
Source§impl PartialOrd for StateSchemaId
impl PartialOrd for StateSchemaId
impl StructuralPartialEq for StateSchemaId
Auto Trait Implementations§
impl Freeze for StateSchemaId
impl RefUnwindSafe for StateSchemaId
impl Send for StateSchemaId
impl Sync for StateSchemaId
impl Unpin for StateSchemaId
impl UnsafeUnpin for StateSchemaId
impl UnwindSafe for StateSchemaId
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