pub struct NonceHash(/* private fields */);
Implementations§
Source§impl NonceHash
impl NonceHash
pub const BYTE_COUNT: usize = 32usize
pub fn to_bech32(&self, prefix: &str) -> Result<String, CryptoError>
pub fn from_bech32(bech_str: &str) -> Result<NonceHash, CryptoError>
pub fn to_hex(&self) -> String
pub fn from_hex(input: &str) -> Result<Self, DeserializeError>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NonceHash
impl<'de> Deserialize<'de> for NonceHash
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 JsonSchema for NonceHash
impl JsonSchema for NonceHash
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &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 NonceHash
impl Ord for NonceHash
Source§impl PartialOrd for NonceHash
impl PartialOrd for NonceHash
Source§impl RawBytesEncoding for NonceHash
impl RawBytesEncoding for NonceHash
fn to_raw_bytes(&self) -> &[u8] ⓘ
fn from_raw_bytes(bytes: &[u8]) -> Result<Self, DeserializeError>
fn to_raw_hex(&self) -> String
fn from_raw_hex(hex_str: &str) -> Result<Self, DeserializeError>where
Self: Sized,
impl Copy for NonceHash
impl Eq for NonceHash
impl StructuralPartialEq for NonceHash
Auto Trait Implementations§
impl Freeze for NonceHash
impl RefUnwindSafe for NonceHash
impl Send for NonceHash
impl Sync for NonceHash
impl Unpin for NonceHash
impl UnwindSafe for NonceHash
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