Struct scrypto::runtime::local_auth_zone::LocalAuthZone
source · pub struct LocalAuthZone {}
Expand description
Represents the auth zone, which is used by system for checking if this component is allowed to
- Call methods on another component;
- Access resource system.
Implementations§
source§impl LocalAuthZone
impl LocalAuthZone
pub fn push<P: Into<Proof>>(proof: P)
pub fn pop() -> Option<Proof>
pub fn create_proof_of_amount<A: Into<Decimal>>( amount: A, resource_address: ResourceAddress ) -> Proof
pub fn create_proof_of_non_fungibles( ids: IndexSet<NonFungibleLocalId>, resource_address: ResourceAddress ) -> Proof
pub fn create_proof_of_all(resource_address: ResourceAddress) -> Proof
pub fn drop_proofs()
pub fn drop_signature_proofs()
pub fn drop_regular_proofs()
Auto Trait Implementations§
impl RefUnwindSafe for LocalAuthZone
impl Send for LocalAuthZone
impl Sync for LocalAuthZone
impl Unpin for LocalAuthZone
impl UnwindSafe for LocalAuthZone
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§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