pub struct VarId(/* private fields */);Expand description
Stable identifier of a Var.
IDs are version-4 UUIDs. The wrapper exists so that callers cannot
accidentally confuse a VarId with a crate::model::ProjectId.
§Examples
use evault_core::model::VarId;
let a = VarId::new_v4();
let b = VarId::new_v4();
assert_ne!(a, b);Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for VarId
impl<'de> Deserialize<'de> for VarId
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
impl Copy for VarId
impl Eq for VarId
impl StructuralPartialEq for VarId
Auto Trait Implementations§
impl Freeze for VarId
impl RefUnwindSafe for VarId
impl Send for VarId
impl Sync for VarId
impl Unpin for VarId
impl UnsafeUnpin for VarId
impl UnwindSafe for VarId
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