[][src]Enum polymesh::service::Signatory

pub enum Signatory<AccountId> {
    Identity(IdentityId),
    Account(AccountId),
}

It supports different elements as a signer.

Variants

Identity(IdentityId)
Account(AccountId)

Implementations

impl<AccountId> Signatory<AccountId> where
    AccountId: PartialEq<AccountId>, 
[src]

pub fn eq_either(
    &self,
    other_identity: &IdentityId,
    other_key: &AccountId
) -> bool
[src]

Checks if Signatory is either a particular Identity or a particular key

pub fn as_identity(&self) -> Option<&IdentityId>[src]

This signatory as IdentityId or None.

pub fn as_account(&self) -> Option<&AccountId>[src]

This signatory as AccountId or None.

Trait Implementations

impl<AccountId> Clone for Signatory<AccountId> where
    AccountId: Clone
[src]

impl<AccountId> Copy for Signatory<AccountId> where
    AccountId: Copy
[src]

impl<AccountId> Debug for Signatory<AccountId> where
    AccountId: Debug
[src]

impl<AccountId> Decode for Signatory<AccountId> where
    AccountId: Decode, 
[src]

impl<AccountId> Default for Signatory<AccountId>[src]

impl<'de, AccountId> Deserialize<'de> for Signatory<AccountId> where
    AccountId: Deserialize<'de>, 
[src]

impl<AccountId> Encode for Signatory<AccountId> where
    AccountId: Encode, 
[src]

impl<AccountId> EncodeLike<Signatory<AccountId>> for Signatory<AccountId> where
    AccountId: Encode, 
[src]

impl<AccountId> Eq for Signatory<AccountId> where
    AccountId: Eq
[src]

impl<AccountId> From<IdentityId> for Signatory<AccountId>[src]

impl<AccountId> Ord for Signatory<AccountId> where
    AccountId: Ord
[src]

impl<AccountId> PartialEq<IdentityId> for Signatory<AccountId>[src]

impl<AccountId> PartialEq<Signatory<AccountId>> for Signatory<AccountId> where
    AccountId: PartialEq<AccountId>, 
[src]

impl<AccountId> PartialOrd<Signatory<AccountId>> for Signatory<AccountId> where
    AccountId: Ord
[src]

pub fn partial_cmp(&self, other: &Signatory<AccountId>) -> Option<Ordering>[src]

Any key is less than any Identity.

impl<AccountId> Serialize for Signatory<AccountId> where
    AccountId: Serialize
[src]

impl<AccountId> StructuralEq for Signatory<AccountId>[src]

impl<AccountId> StructuralPartialEq for Signatory<AccountId>[src]

Auto Trait Implementations

impl<AccountId> RefUnwindSafe for Signatory<AccountId> where
    AccountId: RefUnwindSafe
[src]

impl<AccountId> Send for Signatory<AccountId> where
    AccountId: Send
[src]

impl<AccountId> Sync for Signatory<AccountId> where
    AccountId: Sync
[src]

impl<AccountId> Unpin for Signatory<AccountId> where
    AccountId: Unpin
[src]

impl<AccountId> UnwindSafe for Signatory<AccountId> where
    AccountId: UnwindSafe
[src]

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, U> Cast<U> for T where
    U: FromCast<T>, 

impl<T> CheckedConversion for T

impl<T> Clear for T where
    T: PartialEq<T> + Eq + Default

impl<S> Codec for S where
    S: Encode + Decode, 

impl<T> DecodeAll for T where
    T: Decode, 

impl<T> DecodeLimit for T where
    T: Decode, 

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<'_, '_, T> EncodeLike<&'_ &'_ T> for T where
    T: Encode, 

impl<'_, T> EncodeLike<&'_ T> for T where
    T: Encode, 

impl<'_, T> EncodeLike<&'_ mut T> for T where
    T: Encode, 

impl<T> EncodeLike<Arc<T>> for T where
    T: Encode, 

impl<T> EncodeLike<Box<T, Global>> for T where
    T: Encode, 

impl<'a, T> EncodeLike<Cow<'a, T>> for T where
    T: Encode + ToOwned

impl<T> EncodeLike<Rc<T>> for T where
    T: Encode, 

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T

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

impl<T> FromBits<T> for T

impl<T> FromCast<T> for T

impl<S> FullCodec for S where
    S: Decode + FullEncode, 

impl<S> FullEncode for S where
    S: Encode + EncodeLike<S>, 

impl<T> Hashable for T where
    T: Codec

impl<T> IdentifierT for T where
    T: Clone + Eq + Ord + Default + Debug + Codec

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T, U> IntoBits<U> for T where
    U: FromBits<T>, 

impl<T> IsType<T> for T

impl<T, Outer> IsWrappedBy<Outer> for T where
    T: From<Outer>,
    Outer: AsRef<T> + AsMut<T> + From<T>, 

pub fn from_ref(outer: &Outer) -> &T

Get a reference to the inner from the outer.

pub fn from_mut(outer: &mut Outer) -> &mut T

Get a mutable reference to the inner from the outer.

impl<T> KeyedVec for T where
    T: Codec

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe

impl<T> MaybeSerialize for T where
    T: Serialize

impl<T> MaybeSerializeDeserialize for T where
    T: DeserializeOwned + Serialize

impl<T> Member for T where
    T: 'static + Clone + PartialEq<T> + Eq + Send + Sync + Debug

impl<T> Parameter for T where
    T: Codec + EncodeLike<T> + Clone + Eq + Debug

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatedConversion for T

impl<T> Scalar for T where
    T: PartialEq<T> + Copy + Any + Debug
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

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

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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.

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 

impl<T, S> UniqueSaturatedInto<T> for S where
    T: Bounded,
    S: TryInto<T>, 

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,