pub struct Description(/* private fields */);Implementations§
Source§impl Description
impl Description
pub const FIELD_COUNT: usize = 1
pub fn total_size(&self) -> usize
pub fn field_count(&self) -> usize
pub fn count_extra_fields(&self) -> usize
pub fn has_extra_fields(&self) -> bool
pub fn value(&self) -> Bytes
pub fn as_reader<'r>(&'r self) -> DescriptionReader<'r>
Trait Implementations§
Source§impl Clone for Description
impl Clone for Description
Source§fn clone(&self) -> Description
fn clone(&self) -> Description
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 Description
impl Debug for Description
Source§impl Default for Description
impl Default for Description
Source§impl Display for Description
impl Display for Description
Source§impl Entity for Description
impl Entity for Description
const NAME: &'static str = "Description"
type Builder = DescriptionBuilder
fn new_unchecked(data: Bytes) -> Self
fn as_bytes(&self) -> Bytes
fn as_slice(&self) -> &[u8] ⓘ
fn from_slice(slice: &[u8]) -> VerificationResult<Self>
fn from_compatible_slice(slice: &[u8]) -> VerificationResult<Self>
fn new_builder() -> Self::Builder
fn as_builder(self) -> Self::Builder
Source§impl From<Description> for InvoiceAttr
impl From<Description> for InvoiceAttr
Source§fn from(value: Description) -> Self
fn from(value: Description) -> Self
Converts to this type from the input type.
Source§impl From<Description> for InvoiceAttrUnion
impl From<Description> for InvoiceAttrUnion
Source§fn from(item: Description) -> Self
fn from(item: Description) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for Description
impl RefUnwindSafe for Description
impl Send for Description
impl Sync for Description
impl Unpin for Description
impl UnsafeUnpin for Description
impl UnwindSafe for Description
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