Struct LxPaymentHash
pub struct LxPaymentHash(/* private fields */);Expand description
Newtype for [PaymentHash] which impls Serialize / Deserialize.
Trait Implementations§
§impl AsRef<[u8]> for LxPaymentHash
impl AsRef<[u8]> for LxPaymentHash
§impl AsRef<[u8; 32]> for LxPaymentHash
impl AsRef<[u8; 32]> for LxPaymentHash
§impl ByteArray<32> for LxPaymentHash
impl ByteArray<32> for LxPaymentHash
fn from_array(array: [u8; 32]) -> LxPaymentHash
fn to_array(&self) -> [u8; 32]
fn as_array(&self) -> &[u8; 32]
fn from_array_ref(array: &[u8; N]) -> &Self
fn as_slice(&self) -> &[u8] ⓘ
fn to_vec(&self) -> Vec<u8> ⓘ
fn try_from_slice(slice: &[u8]) -> Result<Self, TryFromSliceError>
fn try_from_vec(vec: Vec<u8>) -> Result<Self, TryFromSliceError>
fn hex_display(&self) -> HexDisplay<'_>
fn try_from_hexstr(s: &str) -> Result<Self, DecodeError>
fn fmt_hexstr(&self, f: &mut Formatter<'_>) -> Result<(), Error>
§impl Clone for LxPaymentHash
impl Clone for LxPaymentHash
§fn clone(&self) -> LxPaymentHash
fn clone(&self) -> LxPaymentHash
Returns a duplicate 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 more§impl Debug for LxPaymentHash
impl Debug for LxPaymentHash
§impl<'de> Deserialize<'de> for LxPaymentHash
impl<'de> Deserialize<'de> for LxPaymentHash
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LxPaymentHash, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LxPaymentHash, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Display for LxPaymentHash
impl Display for LxPaymentHash
§impl From<Hash> for LxPaymentHash
impl From<Hash> for LxPaymentHash
§fn from(hash: Hash) -> LxPaymentHash
fn from(hash: Hash) -> LxPaymentHash
Converts to this type from the input type.
§impl From<PaymentHash> for LxPaymentHash
impl From<PaymentHash> for LxPaymentHash
§fn from(hash: PaymentHash) -> LxPaymentHash
fn from(hash: PaymentHash) -> LxPaymentHash
Converts to this type from the input type.
§impl FromHex for LxPaymentHash
impl FromHex for LxPaymentHash
fn from_hex(s: &str) -> Result<LxPaymentHash, DecodeError>
§impl FromStr for LxPaymentHash
impl FromStr for LxPaymentHash
§impl Hash for LxPaymentHash
impl Hash for LxPaymentHash
§impl Ord for LxPaymentHash
impl Ord for LxPaymentHash
§impl PartialEq for LxPaymentHash
impl PartialEq for LxPaymentHash
§impl PartialOrd for LxPaymentHash
impl PartialOrd for LxPaymentHash
§impl RefCast for LxPaymentHash
impl RefCast for LxPaymentHash
type From = [u8; 32]
fn ref_cast(_from: &<LxPaymentHash as RefCast>::From) -> &LxPaymentHash
fn ref_cast_mut( _from: &mut <LxPaymentHash as RefCast>::From, ) -> &mut LxPaymentHash
§impl Serialize for LxPaymentHash
impl Serialize for LxPaymentHash
§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 TryFrom<LxPaymentId> for LxPaymentHash
impl TryFrom<LxPaymentId> for LxPaymentHash
§fn try_from(id: LxPaymentId) -> Result<LxPaymentHash, Error>
fn try_from(id: LxPaymentId) -> Result<LxPaymentHash, Error>
Performs the conversion.
impl Copy for LxPaymentHash
impl Eq for LxPaymentHash
impl StructuralPartialEq for LxPaymentHash
Auto Trait Implementations§
impl Freeze for LxPaymentHash
impl RefUnwindSafe for LxPaymentHash
impl Send for LxPaymentHash
impl Sync for LxPaymentHash
impl Unpin for LxPaymentHash
impl UnwindSafe for LxPaymentHash
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.