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

pub enum Signatory<AccountId> {

It supports different elements as a signer.




impl<AccountId> Signatory<AccountId> where
    AccountId: PartialEq<AccountId>, 

pub fn eq_either(
    other_identity: &IdentityId,
    other_key: &AccountId
) -> bool

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

impl<AccountId> Copy for Signatory<AccountId> where
    AccountId: Copy

impl<AccountId> Debug for Signatory<AccountId> where
    AccountId: Debug

impl<AccountId> Decode for Signatory<AccountId> where
    AccountId: Decode, 

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

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

impl<AccountId> Encode for Signatory<AccountId> where
    AccountId: Encode, 

impl<AccountId> EncodeLike<Signatory<AccountId>> for Signatory<AccountId> where
    AccountId: Encode, 

impl<AccountId> Eq for Signatory<AccountId> where
    AccountId: Eq

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

impl<AccountId> Ord for Signatory<AccountId> where
    AccountId: Ord

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

impl<AccountId> PartialEq<Signatory<AccountId>> for Signatory<AccountId> where
    AccountId: PartialEq<AccountId>, 

impl<AccountId> PartialOrd<Signatory<AccountId>> for Signatory<AccountId> where
    AccountId: Ord

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

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

impl<AccountId> Send for Signatory<AccountId> where
    AccountId: Send

impl<AccountId> Sync for Signatory<AccountId> where
    AccountId: Sync

impl<AccountId> Unpin for Signatory<AccountId> where
    AccountId: Unpin

impl<AccountId> UnwindSafe for Signatory<AccountId> where
    AccountId: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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>, 

impl<T> DynClone for T where
    T: Clone

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

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>, 

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

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

impl<T> Serialize for T where
    T: Serialize + ?Sized

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

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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>,