Struct breez_sdk_liquid::liquid::bip21::LiquidAddressData
pub struct LiquidAddressData {
pub address: String,
pub network: Network,
pub asset_id: Option<String>,
pub amount_sat: Option<u64>,
pub label: Option<String>,
pub message: Option<String>,
}
Fields§
§address: String
§network: Network
§asset_id: Option<String>
§amount_sat: Option<u64>
§label: Option<String>
§message: Option<String>
Implementations§
§impl LiquidAddressData
impl LiquidAddressData
pub fn to_uri(&self) -> Result<String, URISerializationError>
pub fn to_uri(&self) -> Result<String, URISerializationError>
Converts the structure to a BIP21 URI while also ensuring that all the fields are valid
§impl LiquidAddressData
impl LiquidAddressData
pub fn from_addr(address: &str) -> Result<LiquidAddressData, DeserializeError>
Trait Implementations§
§impl Clone for LiquidAddressData
impl Clone for LiquidAddressData
§fn clone(&self) -> LiquidAddressData
fn clone(&self) -> LiquidAddressData
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 more§impl Debug for LiquidAddressData
impl Debug for LiquidAddressData
§impl FromStr for LiquidAddressData
impl FromStr for LiquidAddressData
§type Err = DeserializeError
type Err = DeserializeError
The associated error which can be returned from parsing.
§fn from_str(
s: &str,
) -> Result<LiquidAddressData, <LiquidAddressData as FromStr>::Err>
fn from_str( s: &str, ) -> Result<LiquidAddressData, <LiquidAddressData as FromStr>::Err>
Parses a string
s
to return a value of this type. Read more§impl Serialize for LiquidAddressData
impl Serialize for LiquidAddressData
§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<&str> for LiquidAddressData
impl TryFrom<&str> for LiquidAddressData
§type Error = DeserializeError
type Error = DeserializeError
The type returned in the event of a conversion error.
§fn try_from(
s: &str,
) -> Result<LiquidAddressData, <LiquidAddressData as TryFrom<&str>>::Error>
fn try_from( s: &str, ) -> Result<LiquidAddressData, <LiquidAddressData as TryFrom<&str>>::Error>
Performs the conversion.
§impl TryFrom<String> for LiquidAddressData
impl TryFrom<String> for LiquidAddressData
§type Error = DeserializeError
type Error = DeserializeError
The type returned in the event of a conversion error.
§fn try_from(
s: String,
) -> Result<LiquidAddressData, <LiquidAddressData as TryFrom<String>>::Error>
fn try_from( s: String, ) -> Result<LiquidAddressData, <LiquidAddressData as TryFrom<String>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for LiquidAddressData
impl RefUnwindSafe for LiquidAddressData
impl Send for LiquidAddressData
impl Sync for LiquidAddressData
impl Unpin for LiquidAddressData
impl UnwindSafe for LiquidAddressData
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request