Enum oasis_runtime_sdk::modules::access::types::MethodAuthorization
source · pub enum MethodAuthorization {
AllowFrom(Addresses),
}
Expand description
A specific kind of method authorization.
Variants§
AllowFrom(Addresses)
Only allow method calls from these addresses; for other callers, the method call will fail.
Implementations§
source§impl MethodAuthorization
impl MethodAuthorization
sourcepub fn allow_from<I: IntoIterator<Item = Address>>(it: I) -> Self
pub fn allow_from<I: IntoIterator<Item = Address>>(it: I) -> Self
Helper for creating a method authorization type that only allows callers with the given addresses.
Auto Trait Implementations§
impl Freeze for MethodAuthorization
impl RefUnwindSafe for MethodAuthorization
impl Send for MethodAuthorization
impl Sync for MethodAuthorization
impl Unpin for MethodAuthorization
impl UnwindSafe for MethodAuthorization
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