[][src]Struct stellar_base::signature::Signer

pub struct Signer { /* fields omitted */ }

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.