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