#[repr(u8)]pub enum AccountType {
Basic = 0,
Vesting = 1,
HTLC = 2,
}Variants§
Implementations§
Source§impl AccountType
impl AccountType
pub fn from_int(x: u8) -> Option<AccountType>
Trait Implementations§
Source§impl Clone for AccountType
impl Clone for AccountType
Source§fn clone(&self) -> AccountType
fn clone(&self) -> AccountType
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 AccountType
impl Debug for AccountType
Source§impl Deserialize for AccountType
impl Deserialize for AccountType
fn deserialize<R: ReadBytesExt>( reader: &mut R, ) -> Result<Self, SerializingError>
fn deserialize_from_vec(v: &Vec<u8>) -> Result<Self, SerializingError>
Source§impl Display for AccountType
impl Display for AccountType
Source§impl Ord for AccountType
impl Ord for AccountType
Source§fn cmp(&self, other: &AccountType) -> Ordering
fn cmp(&self, other: &AccountType) -> 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 AccountType
impl PartialEq for AccountType
Source§impl PartialOrd for AccountType
impl PartialOrd for AccountType
Source§impl Serialize for AccountType
impl Serialize for AccountType
fn serialize<W: WriteBytesExt>( &self, writer: &mut W, ) -> Result<usize, SerializingError>
fn serialized_size(&self) -> usize
fn serialize_to_vec(&self) -> Vec<u8> ⓘ
impl Copy for AccountType
impl Eq for AccountType
impl StructuralPartialEq for AccountType
Auto Trait Implementations§
impl Freeze for AccountType
impl RefUnwindSafe for AccountType
impl Send for AccountType
impl Sync for AccountType
impl Unpin for AccountType
impl UnwindSafe for AccountType
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