Struct spayd::SpaydVersion
source · pub struct SpaydVersion {
pub major: u32,
pub minor: u32,
}
Expand description
Version number of the Short Payment Descriptor.
Currently there is only a standard for version 1.0.
Fields§
§major: u32
§minor: u32
Implementations§
Trait Implementations§
source§impl Clone for SpaydVersion
impl Clone for SpaydVersion
source§fn clone(&self) -> SpaydVersion
fn clone(&self) -> SpaydVersion
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 moresource§impl Debug for SpaydVersion
impl Debug for SpaydVersion
source§impl Display for SpaydVersion
impl Display for SpaydVersion
source§impl Ord for SpaydVersion
impl Ord for SpaydVersion
source§fn cmp(&self, other: &SpaydVersion) -> Ordering
fn cmp(&self, other: &SpaydVersion) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for SpaydVersion
impl PartialEq for SpaydVersion
source§fn eq(&self, other: &SpaydVersion) -> bool
fn eq(&self, other: &SpaydVersion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SpaydVersion
impl PartialOrd for SpaydVersion
source§fn partial_cmp(&self, other: &SpaydVersion) -> Option<Ordering>
fn partial_cmp(&self, other: &SpaydVersion) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for SpaydVersion
impl Eq for SpaydVersion
impl StructuralEq for SpaydVersion
impl StructuralPartialEq for SpaydVersion
Auto Trait Implementations§
impl RefUnwindSafe for SpaydVersion
impl Send for SpaydVersion
impl Sync for SpaydVersion
impl Unpin for SpaydVersion
impl UnwindSafe for SpaydVersion
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