[−][src]Struct stellar_base::signature::Signer
A transaction signer key with its weight.
Implementations
impl Signer[src]
pub fn new(key: SignerKey, weight: u32) -> Signer[src]
Creates a new Signer with key and weight.
pub fn key(&self) -> &SignerKey[src]
Returns the key.
pub fn key_mut(&mut self) -> &mut SignerKey[src]
Returns a mutable reference to the key.
pub fn weight(&self) -> &u32[src]
Returns the weight.
pub fn weight_mut(&mut self) -> &mut u32[src]
Returns a mutable reference to the weight.
pub fn to_xdr(&self) -> Result<Signer>[src]
Returns xdr object.
pub fn from_xdr(x: &Signer) -> Result<Signer>[src]
Creates from xdr object.
Trait Implementations
impl Clone for Signer[src]
impl Debug for Signer[src]
impl Eq for Signer[src]
impl PartialEq<Signer> for Signer[src]
impl StructuralEq for Signer[src]
impl StructuralPartialEq for Signer[src]
impl XDRDeserialize for Signer[src]
fn from_xdr_bytes(buffer: &[u8]) -> Result<(Self, u64)>[src]
fn from_xdr_base64(encoded: &str) -> Result<Self>[src]
impl XDRSerialize for Signer[src]
Auto Trait Implementations
impl RefUnwindSafe for Signer
impl Send for Signer
impl Sync for Signer
impl Unpin for Signer
impl UnwindSafe for Signer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,