pub enum PubKeyOrAddress<'a> {
Address(&'a Address),
PubKey(&'a PublicKey),
}
Expand description
Used to represent arguments that can either be an address or a public key.
Variants§
Trait Implementations§
Source§impl<'a> Clone for PubKeyOrAddress<'a>
impl<'a> Clone for PubKeyOrAddress<'a>
Source§fn clone(&self) -> PubKeyOrAddress<'a>
fn clone(&self) -> PubKeyOrAddress<'a>
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<'a> Debug for PubKeyOrAddress<'a>
impl<'a> Debug for PubKeyOrAddress<'a>
Source§impl<'a> Ord for PubKeyOrAddress<'a>
impl<'a> Ord for PubKeyOrAddress<'a>
Source§fn cmp(&self, other: &PubKeyOrAddress<'a>) -> Ordering
fn cmp(&self, other: &PubKeyOrAddress<'a>) -> 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<'a> PartialEq for PubKeyOrAddress<'a>
impl<'a> PartialEq for PubKeyOrAddress<'a>
Source§impl<'a> PartialOrd for PubKeyOrAddress<'a>
impl<'a> PartialOrd for PubKeyOrAddress<'a>
Source§impl<'a> Serialize for PubKeyOrAddress<'a>
impl<'a> Serialize for PubKeyOrAddress<'a>
impl<'a> Eq for PubKeyOrAddress<'a>
impl<'a> StructuralPartialEq for PubKeyOrAddress<'a>
Auto Trait Implementations§
impl<'a> Freeze for PubKeyOrAddress<'a>
impl<'a> RefUnwindSafe for PubKeyOrAddress<'a>
impl<'a> Send for PubKeyOrAddress<'a>
impl<'a> Sync for PubKeyOrAddress<'a>
impl<'a> Unpin for PubKeyOrAddress<'a>
impl<'a> UnwindSafe for PubKeyOrAddress<'a>
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