pub struct GovernmentId(pub u64);Expand description
Stable numeric identifier for GovernmentId.
Tuple Fields§
§0: u64Implementations§
Source§impl GovernmentId
impl GovernmentId
Trait Implementations§
Source§impl Clone for GovernmentId
impl Clone for GovernmentId
Source§fn clone(&self) -> GovernmentId
fn clone(&self) -> GovernmentId
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 moreimpl Copy for GovernmentId
Source§impl Debug for GovernmentId
impl Debug for GovernmentId
Source§impl Default for GovernmentId
impl Default for GovernmentId
Source§fn default() -> GovernmentId
fn default() -> GovernmentId
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GovernmentId
impl<'de> Deserialize<'de> for GovernmentId
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GovernmentId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GovernmentId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for GovernmentId
impl Display for GovernmentId
impl Eq for GovernmentId
Source§impl Hash for GovernmentId
impl Hash for GovernmentId
Source§impl Ord for GovernmentId
impl Ord for GovernmentId
Source§fn cmp(&self, other: &GovernmentId) -> Ordering
fn cmp(&self, other: &GovernmentId) -> 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
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 GovernmentId
impl PartialEq for GovernmentId
Source§impl PartialOrd for GovernmentId
impl PartialOrd for GovernmentId
Source§impl Serialize for GovernmentId
impl Serialize for GovernmentId
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for GovernmentId
Auto Trait Implementations§
impl Freeze for GovernmentId
impl RefUnwindSafe for GovernmentId
impl Send for GovernmentId
impl Sync for GovernmentId
impl Unpin for GovernmentId
impl UnsafeUnpin for GovernmentId
impl UnwindSafe for GovernmentId
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