Struct oasis_runtime_sdk::types::transaction::SignerInfo
source · pub struct SignerInfo {
pub address_spec: AddressSpec,
pub nonce: u64,
}
Expand description
Transaction signer information.
Fields§
§address_spec: AddressSpec
§nonce: u64
Implementations§
source§impl SignerInfo
impl SignerInfo
sourcepub fn new_sigspec(spec: SignatureAddressSpec, nonce: u64) -> Self
pub fn new_sigspec(spec: SignatureAddressSpec, nonce: u64) -> Self
Create a new signer info from a signature address specification and nonce.
sourcepub fn new_multisig(config: Config, nonce: u64) -> Self
pub fn new_multisig(config: Config, nonce: u64) -> Self
Create a new signer info from a multisig configuration and a nonce.
Trait Implementations§
source§impl Clone for SignerInfo
impl Clone for SignerInfo
source§fn clone(&self) -> SignerInfo
fn clone(&self) -> SignerInfo
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 SignerInfo
impl Debug for SignerInfo
source§impl Decode for SignerInfo
impl Decode for SignerInfo
source§fn try_from_cbor_value(value: Value) -> Result<Self, DecodeError>
fn try_from_cbor_value(value: Value) -> Result<Self, DecodeError>
Try to decode from a given CBOR value.
§fn try_default() -> Result<Self, DecodeError>where
Self: Sized,
fn try_default() -> Result<Self, DecodeError>where
Self: Sized,
Try to decode from a missing/null/undefined value.
§fn try_from_cbor_value_default(value: Value) -> Result<Self, DecodeError>where
Self: Sized,
fn try_from_cbor_value_default(value: Value) -> Result<Self, DecodeError>where
Self: Sized,
Try to decode from a given CBOR value, calling
try_default
in case the value is null or
undefined.source§impl Encode for SignerInfo
impl Encode for SignerInfo
source§impl EncodeAsMap for SignerInfo
impl EncodeAsMap for SignerInfo
§fn into_cbor_value_map(self) -> Valuewhere
Self: Sized,
fn into_cbor_value_map(self) -> Valuewhere
Self: Sized,
Encode the type into a CBOR Map.
§fn into_cbor_map(self) -> Vec<(Value, Value)>where
Self: Sized,
fn into_cbor_map(self) -> Vec<(Value, Value)>where
Self: Sized,
Encode the type into a CBOR Map, returning the map items.
Auto Trait Implementations§
impl Freeze for SignerInfo
impl RefUnwindSafe for SignerInfo
impl Send for SignerInfo
impl Sync for SignerInfo
impl Unpin for SignerInfo
impl UnwindSafe for SignerInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)