#[repr(C)]pub struct EmptyAddrData {
pub tx_count: u32,
pub funded_txo_count: u32,
pub transfered: Sats,
}Expand description
Data of an empty address
Fields§
§tx_count: u32Total transaction count
funded_txo_count: u32Total funded/spent transaction output count (equal since address is empty)
transfered: SatsTotal satoshis transferred
Trait Implementations§
Source§impl Bytes for EmptyAddrData
impl Bytes for EmptyAddrData
Source§type Array = [u8; 16]
type Array = [u8; 16]
The byte array type returned by
to_bytes.
For fixed-size types, this is [u8; N] where N is the size of the type.Source§fn to_bytes(&self) -> <EmptyAddrData as Bytes>::Array
fn to_bytes(&self) -> <EmptyAddrData as Bytes>::Array
Serializes this value to bytes. Read more
Source§fn from_bytes(bytes: &[u8]) -> Result<EmptyAddrData, Error>
fn from_bytes(bytes: &[u8]) -> Result<EmptyAddrData, Error>
Deserializes a value from bytes. Read more
Source§const IS_NATIVE_LAYOUT: bool = false
const IS_NATIVE_LAYOUT: bool = false
Whether the byte representation from
to_bytes is identical to the
in-memory representation of Self. When true, bulk operations can use
memcpy instead of per-element deserialization. Read moreSource§impl Clone for EmptyAddrData
impl Clone for EmptyAddrData
Source§fn clone(&self) -> EmptyAddrData
fn clone(&self) -> EmptyAddrData
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 moreSource§impl Debug for EmptyAddrData
impl Debug for EmptyAddrData
Source§impl Default for EmptyAddrData
impl Default for EmptyAddrData
Source§fn default() -> EmptyAddrData
fn default() -> EmptyAddrData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EmptyAddrData
impl<'de> Deserialize<'de> for EmptyAddrData
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EmptyAddrData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EmptyAddrData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for EmptyAddrData
impl Display for EmptyAddrData
Source§impl Formattable for EmptyAddrData
impl Formattable for EmptyAddrData
Source§fn write_to(&self, buf: &mut Vec<u8>)
fn write_to(&self, buf: &mut Vec<u8>)
Write formatted UTF-8 bytes. Primary method — all others derive from it.
Source§fn fmt_csv(&self, f: &mut String) -> Result<(), Error>
fn fmt_csv(&self, f: &mut String) -> Result<(), Error>
Write in CSV format. Override for types needing CSV escaping (e.g., quoting commas).
Source§impl From<&EmptyAddrData> for FundedAddrData
impl From<&EmptyAddrData> for FundedAddrData
Source§fn from(value: &EmptyAddrData) -> FundedAddrData
fn from(value: &EmptyAddrData) -> FundedAddrData
Converts to this type from the input type.
Source§impl From<&FundedAddrData> for EmptyAddrData
impl From<&FundedAddrData> for EmptyAddrData
Source§fn from(value: &FundedAddrData) -> EmptyAddrData
fn from(value: &FundedAddrData) -> EmptyAddrData
Converts to this type from the input type.
Source§impl From<EmptyAddrData> for FundedAddrData
impl From<EmptyAddrData> for FundedAddrData
Source§fn from(value: EmptyAddrData) -> FundedAddrData
fn from(value: EmptyAddrData) -> FundedAddrData
Converts to this type from the input type.
Source§impl From<FundedAddrData> for EmptyAddrData
impl From<FundedAddrData> for EmptyAddrData
Source§fn from(value: FundedAddrData) -> EmptyAddrData
fn from(value: FundedAddrData) -> EmptyAddrData
Converts to this type from the input type.
Source§impl JsonSchema for EmptyAddrData
impl JsonSchema for EmptyAddrData
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. 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 inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Serialize for EmptyAddrData
impl Serialize for EmptyAddrData
Source§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
Auto Trait Implementations§
impl Freeze for EmptyAddrData
impl RefUnwindSafe for EmptyAddrData
impl Send for EmptyAddrData
impl Sync for EmptyAddrData
impl Unpin for EmptyAddrData
impl UnsafeUnpin for EmptyAddrData
impl UnwindSafe for EmptyAddrData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more