pub struct UserAddr(/* private fields */);Expand description
A validated Nibiru externally owned account.
JSON input is a Nibiru bech32 address or a 0x-prefixed 20-byte EVM
address. JSON output is canonical EIP-55 hex. CosmWasm contract addresses
are deliberately excluded because they use a different byte length.
Implementations§
Trait Implementations§
impl Copy for UserAddr
Source§impl<'de> Deserialize<'de> for UserAddr
impl<'de> Deserialize<'de> for UserAddr
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 Eq for UserAddr
Source§impl JsonSchema for UserAddr
impl JsonSchema for UserAddr
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl Ord for UserAddr
impl Ord for UserAddr
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 PartialOrd for UserAddr
impl PartialOrd for UserAddr
impl StructuralPartialEq for UserAddr
Auto Trait Implementations§
impl Freeze for UserAddr
impl RefUnwindSafe for UserAddr
impl Send for UserAddr
impl Sync for UserAddr
impl Unpin for UserAddr
impl UnsafeUnpin for UserAddr
impl UnwindSafe for UserAddr
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