#[repr(transparent)]pub struct OwnershipState(pub u32);
Tuple Fields§
§0: u32
Implementations§
Source§impl OwnershipState
impl OwnershipState
pub const Recovery: OwnershipState = _
pub const LockedOwner: OwnershipState = _
pub const LockedUpdate: OwnershipState = _
pub const UnlockedAny: OwnershipState = _
pub const UnlockedEndorsed: OwnershipState = _
Trait Implementations§
Source§impl Binary for OwnershipState
impl Binary for OwnershipState
Source§impl Clone for OwnershipState
impl Clone for OwnershipState
Source§fn clone(&self) -> OwnershipState
fn clone(&self) -> OwnershipState
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OwnershipState
impl Debug for OwnershipState
Source§impl Default for OwnershipState
impl Default for OwnershipState
Source§impl<'de> Deserialize<'de> for OwnershipState
impl<'de> Deserialize<'de> for OwnershipState
Source§fn deserialize<D>(deserializer: D) -> Result<OwnershipState, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<OwnershipState, D::Error>where
D: Deserializer<'de>,
Deserializes the value by forwarding to deserialize_any
.
deserialize_any
will forward strings to the string visitor
and forward integers to the appropriate integer visitor.
Source§impl Display for OwnershipState
impl Display for OwnershipState
Source§impl From<OwnershipState> for u32
impl From<OwnershipState> for u32
Source§fn from(v: OwnershipState) -> u32
fn from(v: OwnershipState) -> u32
Converts to this type from the input type.
Source§impl FromStr for OwnershipState
impl FromStr for OwnershipState
Source§impl Hash for OwnershipState
impl Hash for OwnershipState
Source§impl LowerHex for OwnershipState
impl LowerHex for OwnershipState
Source§impl Octal for OwnershipState
impl Octal for OwnershipState
Source§impl Ord for OwnershipState
impl Ord for OwnershipState
Source§fn cmp(&self, other: &OwnershipState) -> Ordering
fn cmp(&self, other: &OwnershipState) -> Ordering
1.21.0 · 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
Source§impl PartialEq for OwnershipState
impl PartialEq for OwnershipState
Source§impl PartialOrd for OwnershipState
impl PartialOrd for OwnershipState
Source§impl Serialize for OwnershipState
impl Serialize for OwnershipState
Source§impl TryFrom<i16> for OwnershipState
impl TryFrom<i16> for OwnershipState
Source§impl TryFrom<i32> for OwnershipState
impl TryFrom<i32> for OwnershipState
Source§impl TryFrom<i64> for OwnershipState
impl TryFrom<i64> for OwnershipState
Source§impl TryFrom<i8> for OwnershipState
impl TryFrom<i8> for OwnershipState
Source§impl TryFrom<u16> for OwnershipState
impl TryFrom<u16> for OwnershipState
Source§impl TryFrom<u32> for OwnershipState
impl TryFrom<u32> for OwnershipState
Source§impl TryFrom<u64> for OwnershipState
impl TryFrom<u64> for OwnershipState
Source§impl TryFrom<u8> for OwnershipState
impl TryFrom<u8> for OwnershipState
Source§impl UpperHex for OwnershipState
impl UpperHex for OwnershipState
Source§impl ValueEnum for OwnershipState
impl ValueEnum for OwnershipState
impl Copy for OwnershipState
impl Eq for OwnershipState
impl StructuralPartialEq for OwnershipState
Auto Trait Implementations§
impl Freeze for OwnershipState
impl RefUnwindSafe for OwnershipState
impl Send for OwnershipState
impl Sync for OwnershipState
impl Unpin for OwnershipState
impl UnwindSafe for OwnershipState
Blanket Implementations§
§impl<T> Annotate for T
impl<T> Annotate for T
default fn format( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<Format>
default fn comment( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<String>
default fn as_annotate(&self) -> Option<&dyn Annotate>
default fn thunk_serialize( &self, serializer: &mut AnnotatedSerializer<'_>, ) -> Result<Document, Error>
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