pub struct RunId(/* private fields */);Expand description
Strongly-typed ID for "run" resources.
use daedalus_core::ids::RunId;
let id = RunId::try_from(1).unwrap();
assert_eq!(id.to_string(), "run:1");Implementations§
Source§impl RunId
impl RunId
pub const PREFIX: &'static str = "run"
pub fn new(raw: NonZeroU64) -> Self
pub fn get(self) -> NonZeroU64
pub fn into_inner(self) -> NonZeroU64
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunId
impl<'de> Deserialize<'de> for RunId
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 From<NonZero<u64>> for RunId
impl From<NonZero<u64>> for RunId
Source§fn from(value: NonZeroU64) -> Self
fn from(value: NonZeroU64) -> Self
Converts to this type from the input type.
Source§impl Ord for RunId
impl Ord for RunId
Source§impl PartialOrd for RunId
impl PartialOrd for RunId
impl Copy for RunId
impl Eq for RunId
impl StructuralPartialEq for RunId
Auto Trait Implementations§
impl Freeze for RunId
impl RefUnwindSafe for RunId
impl Send for RunId
impl Sync for RunId
impl Unpin for RunId
impl UnwindSafe for RunId
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