pub struct OperationId(/* private fields */);Expand description
A caller-chosen identifier for a mutating operation.
It is 1 to OPERATION_ID_MAX_LEN characters drawn from [A-Za-z0-9_-],
and is compared exactly (case matters).
§Examples
use stratum_node_core::OperationId;
let op: OperationId = "apply-2026_12_03".parse()?;
assert_eq!(op.as_str(), "apply-2026_12_03");
assert!("has space".parse::<OperationId>().is_err());Implementations§
Trait Implementations§
Source§impl AsRef<str> for OperationId
impl AsRef<str> for OperationId
Source§impl Clone for OperationId
impl Clone for OperationId
Source§impl Debug for OperationId
impl Debug for OperationId
Source§impl<'de> Deserialize<'de> for OperationId
impl<'de> Deserialize<'de> for OperationId
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for OperationId
impl Display for OperationId
impl Eq for OperationId
Source§impl FromStr for OperationId
impl FromStr for OperationId
Source§impl Hash for OperationId
impl Hash for OperationId
Source§impl Ord for OperationId
impl Ord for OperationId
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for OperationId
impl PartialEq for OperationId
Source§impl PartialOrd for OperationId
impl PartialOrd for OperationId
Source§impl Serialize for OperationId
impl Serialize for OperationId
impl StructuralPartialEq for OperationId
Auto Trait Implementations§
impl Forget for OperationId
impl Freeze for OperationId
impl Move for OperationId
impl RefUnwindSafe for OperationId
impl Send for OperationIdwhere
RawVecInner: Send,
impl Sync for OperationIdwhere
RawVecInner: Sync,
impl Unpin for OperationId
impl UnsafeUnpin for OperationId
impl UnwindSafe for OperationIdwhere
RawVecInner: UnwindSafe,
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