Struct cosmwasm_std::OwnedDeps
source · [−]pub struct OwnedDeps<S: Storage, A: Api, Q: Querier, C: CustomQuery = Empty> {
pub storage: S,
pub api: A,
pub querier: Q,
pub custom_query_type: PhantomData<C>,
}
Expand description
Holds all external dependencies of the contract. Designed to allow easy dependency injection at runtime. This cannot be copied or cloned since it would behave differently for mock storages and a bridge storage in the VM.
Fields
storage: S
api: A
querier: Q
custom_query_type: PhantomData<C>
Implementations
Auto Trait Implementations
impl<S, A, Q, C> RefUnwindSafe for OwnedDeps<S, A, Q, C> where
A: RefUnwindSafe,
C: RefUnwindSafe,
Q: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, A, Q, C> Send for OwnedDeps<S, A, Q, C> where
A: Send,
C: Send,
Q: Send,
S: Send,
impl<S, A, Q, C> Sync for OwnedDeps<S, A, Q, C> where
A: Sync,
C: Sync,
Q: Sync,
S: Sync,
impl<S, A, Q, C> Unpin for OwnedDeps<S, A, Q, C> where
A: Unpin,
C: Unpin,
Q: Unpin,
S: Unpin,
impl<S, A, Q, C> UnwindSafe for OwnedDeps<S, A, Q, C> where
A: UnwindSafe,
C: UnwindSafe,
Q: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more