Struct oasis_runtime_sdk::dispatcher::DispatchOptions
source · pub struct DispatchOptions<'a> {
pub tx_size: u32,
pub tx_index: usize,
pub tx_hash: Hash,
pub method_authorizer: Option<&'a dyn Fn(&str) -> bool>,
pub skip_authentication: bool,
}
Expand description
Additional options for dispatch operations.
Fields§
§tx_size: u32
Transaction size.
tx_index: usize
Transaction index within the batch.
tx_hash: Hash
Transaction hash.
Optionally only allow methods for which the provided authorizer closure returns true.
skip_authentication: bool
Optionally skip authentication.
Trait Implementations§
source§impl<'a> Default for DispatchOptions<'a>
impl<'a> Default for DispatchOptions<'a>
source§fn default() -> DispatchOptions<'a>
fn default() -> DispatchOptions<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for DispatchOptions<'a>
impl<'a> !RefUnwindSafe for DispatchOptions<'a>
impl<'a> !Send for DispatchOptions<'a>
impl<'a> !Sync for DispatchOptions<'a>
impl<'a> Unpin for DispatchOptions<'a>
impl<'a> !UnwindSafe for DispatchOptions<'a>
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