pub trait NativeAuthZone {
// Required methods
fn drain<Y, E>(&self, api: &mut Y) -> Result<Vec<Proof>, E>
where Y: SystemApi<E>,
E: SystemApiError;
fn drop_proofs<Y, E>(&self, api: &mut Y) -> Result<(), E>
where Y: SystemApi<E>,
E: SystemApiError;
fn drop_regular_proofs<Y, E>(&self, api: &mut Y) -> Result<(), E>
where Y: SystemApi<E>,
E: SystemApiError;
fn drop_signature_proofs<Y, E>(&self, api: &mut Y) -> Result<(), E>
where Y: SystemApi<E>,
E: SystemApiError;
fn pop<Y, E>(&self, api: &mut Y) -> Result<Option<Proof>, E>
where Y: SystemApi<E>,
E: SystemApiError;
fn create_proof_of_amount<Y, E>(
&self,
amount: Decimal,
resource_address: ResourceAddress,
api: &mut Y,
) -> Result<Proof, E>
where Y: SystemApi<E>,
E: SystemApiError;
fn create_proof_of_non_fungibles<Y, E>(
&self,
ids: &IndexSet<NonFungibleLocalId>,
resource_address: ResourceAddress,
api: &mut Y,
) -> Result<Proof, E>
where Y: SystemApi<E>,
E: SystemApiError;
fn create_proof_of_all<Y, E>(
&self,
resource_address: ResourceAddress,
api: &mut Y,
) -> Result<Proof, E>
where Y: SystemApi<E>,
E: SystemApiError;
fn push<Y, E, P>(&self, proof: P, api: &mut Y) -> Result<(), E>
where Y: SystemApi<E>,
E: SystemApiError,
P: Into<Proof>;
}
Required Methods§
fn drain<Y, E>(&self, api: &mut Y) -> Result<Vec<Proof>, E>where
Y: SystemApi<E>,
E: SystemApiError,
fn drop_proofs<Y, E>(&self, api: &mut Y) -> Result<(), E>where
Y: SystemApi<E>,
E: SystemApiError,
fn drop_regular_proofs<Y, E>(&self, api: &mut Y) -> Result<(), E>where
Y: SystemApi<E>,
E: SystemApiError,
fn drop_signature_proofs<Y, E>(&self, api: &mut Y) -> Result<(), E>where
Y: SystemApi<E>,
E: SystemApiError,
fn pop<Y, E>(&self, api: &mut Y) -> Result<Option<Proof>, E>where
Y: SystemApi<E>,
E: SystemApiError,
fn create_proof_of_amount<Y, E>(
&self,
amount: Decimal,
resource_address: ResourceAddress,
api: &mut Y,
) -> Result<Proof, E>where
Y: SystemApi<E>,
E: SystemApiError,
fn create_proof_of_non_fungibles<Y, E>(
&self,
ids: &IndexSet<NonFungibleLocalId>,
resource_address: ResourceAddress,
api: &mut Y,
) -> Result<Proof, E>where
Y: SystemApi<E>,
E: SystemApiError,
fn create_proof_of_all<Y, E>(
&self,
resource_address: ResourceAddress,
api: &mut Y,
) -> Result<Proof, E>where
Y: SystemApi<E>,
E: SystemApiError,
fn push<Y, E, P>(&self, proof: P, api: &mut Y) -> Result<(), E>
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.