Struct cosmwasm_std::OwnedDeps[][src]

pub struct OwnedDeps<S: Storage, A: Api, Q: Querier> {
    pub storage: S,
    pub api: A,
    pub querier: Q,
}

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: Sapi: Aquerier: Q

Implementations

impl<S: Storage, A: Api, Q: Querier> OwnedDeps<S, A, Q>[src]

pub fn as_ref(&self) -> Deps<'_>[src]

pub fn as_mut(&mut self) -> DepsMut<'_>[src]

Auto Trait Implementations

impl<S, A, Q> RefUnwindSafe for OwnedDeps<S, A, Q> where
    A: RefUnwindSafe,
    Q: RefUnwindSafe,
    S: RefUnwindSafe

impl<S, A, Q> Send for OwnedDeps<S, A, Q> where
    A: Send,
    Q: Send,
    S: Send

impl<S, A, Q> Sync for OwnedDeps<S, A, Q> where
    A: Sync,
    Q: Sync,
    S: Sync

impl<S, A, Q> Unpin for OwnedDeps<S, A, Q> where
    A: Unpin,
    Q: Unpin,
    S: Unpin

impl<S, A, Q> UnwindSafe for OwnedDeps<S, A, Q> where
    A: UnwindSafe,
    Q: UnwindSafe,
    S: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.