referrerpolicy=no-referrer-when-downgrade
polkadot_sdk_frame::traits

Trait ExtrinsicLike

pub trait ExtrinsicLike: Sized {
    // Provided methods
    fn is_signed(&self) -> Option<bool> { ... }
    fn is_bare(&self) -> bool { ... }
}
Expand description

Something that acts like an Extrinsic.

Provided Methods§

fn is_signed(&self) -> Option<bool>

👎Deprecated: Use and implement !is_bare() instead

Is this Extrinsic signed? If no information are available about signed/unsigned, None should be returned.

fn is_bare(&self) -> bool

Returns true if this Extrinsic is bare.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

§

impl ExtrinsicLike for OpaqueExtrinsic

§

impl<Address, Call, Signature, Extension> ExtrinsicLike for UncheckedExtrinsic<Address, Call, Signature, Extension>
where Address: TypeInfo, Call: TypeInfo, Signature: TypeInfo, Extension: TypeInfo,

§

impl<T> ExtrinsicLike for T
where T: Extrinsic,

impl<Address: TypeInfo, Signature: TypeInfo, E: EthExtra> ExtrinsicLike for UncheckedExtrinsic<Address, Signature, E>

impl ExtrinsicLike for Extrinsic