Struct soroban_sdk::auth::ContractContext
source · pub struct ContractContext {
pub contract: Address,
pub fn_name: Symbol,
pub args: Vec<Val>,
}Expand description
Authorization context of a single contract call.
This struct corresponds to a require_auth_for_args call for an address
from contract function with fn_name name and args arguments.
Fields§
§contract: Address§fn_name: Symbol§args: Vec<Val>Trait Implementations§
source§impl Clone for ContractContext
impl Clone for ContractContext
source§fn clone(&self) -> ContractContext
fn clone(&self) -> ContractContext
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl SorobanArbitrary for ContractContext
impl SorobanArbitrary for ContractContext
§type Prototype = ArbitraryContractContext
type Prototype = ArbitraryContractContext
Available on crate feature
testutils only.A type that implements
Arbitrary and can be converted to this
SorobanArbitrary type.source§impl TryFrom<&ContractContext> for ScMap
impl TryFrom<&ContractContext> for ScMap
source§impl TryFrom<&ContractContext> for ScVal
impl TryFrom<&ContractContext> for ScVal
source§impl TryFrom<ContractContext> for ScMap
impl TryFrom<ContractContext> for ScMap
source§impl TryFrom<ContractContext> for ScVal
impl TryFrom<ContractContext> for ScVal
source§impl TryFromVal<Env, ContractContext> for Val
impl TryFromVal<Env, ContractContext> for Val
type Error = ConversionError
fn try_from_val( env: &Env, val: &ContractContext ) -> Result<Self, ConversionError>
source§impl TryFromVal<Env, ScMap> for ContractContext
impl TryFromVal<Env, ScMap> for ContractContext
source§impl TryFromVal<Env, ScVal> for ContractContext
impl TryFromVal<Env, ScVal> for ContractContext
source§impl TryFromVal<Env, Val> for ContractContext
impl TryFromVal<Env, Val> for ContractContext
type Error = ConversionError
fn try_from_val(env: &Env, val: &Val) -> Result<Self, ConversionError>
Auto Trait Implementations§
impl Freeze for ContractContext
impl !RefUnwindSafe for ContractContext
impl !Send for ContractContext
impl !Sync for ContractContext
impl Unpin for ContractContext
impl !UnwindSafe for ContractContext
Blanket Implementations§
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
source§impl<T, U, V, W, E, C> Compare<(T, U, V, W)> for C
impl<T, U, V, W, E, C> Compare<(T, U, V, W)> for C
type Error = E
fn compare( &self, a: &(T, U, V, W), b: &(T, U, V, W) ) -> Result<Ordering, <C as Compare<(T, U, V, W)>>::Error>
source§impl<T, U, V, W, X, E, C> Compare<(T, U, V, W, X)> for C
impl<T, U, V, W, X, E, C> Compare<(T, U, V, W, X)> for C
type Error = E
fn compare( &self, a: &(T, U, V, W, X), b: &(T, U, V, W, X) ) -> Result<Ordering, <C as Compare<(T, U, V, W, X)>>::Error>
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.