pub struct Deps<'a, C: CustomQuery = Empty> {
pub storage: &'a dyn Storage,
pub api: &'a dyn Api,
pub querier: QuerierWrapper<'a, C>,
}
Fields§
§storage: &'a dyn Storage
§api: &'a dyn Api
§querier: QuerierWrapper<'a, C>
Implementations§
Source§impl<'a, C: CustomQuery> Deps<'a, C>
impl<'a, C: CustomQuery> Deps<'a, C>
Sourcepub fn into_empty(self) -> Deps<'a, Empty>
pub fn into_empty(self) -> Deps<'a, Empty>
This allows to convert any Deps
into one generic over Empty
custom
query type.
Trait Implementations§
impl<'a, C: CustomQuery> Copy for Deps<'a, C>
Auto Trait Implementations§
impl<'a, C> Freeze for Deps<'a, C>
impl<'a, C = Empty> !RefUnwindSafe for Deps<'a, C>
impl<'a, C = Empty> !Send for Deps<'a, C>
impl<'a, C = Empty> !Sync for Deps<'a, C>
impl<'a, C> Unpin for Deps<'a, C>where
C: Unpin,
impl<'a, C = Empty> !UnwindSafe for Deps<'a, C>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more