Struct provwasm_std::ProvenanceQuerier [−][src]
A type for simplifying provenance custom queries.
Implementations
impl<'a> ProvenanceQuerier<'a>
[src]
pub fn new(querier: &'a QuerierWrapper<'_>) -> Self
[src]
Creates a new provenance querier
pub fn resolve_name(&self, name: String) -> StdResult<Name>
[src]
Resolve the address for a name.
pub fn lookup_names(&self, address: HumanAddr) -> StdResult<Names>
[src]
Lookup all names bound to the given address.
pub fn get_attributes(
&self,
address: HumanAddr,
name: Option<String>
) -> StdResult<Attributes>
[src]
&self,
address: HumanAddr,
name: Option<String>
) -> StdResult<Attributes>
Get attributes for an account. If the name parameter is empty, all attributes are returned.
pub fn get_json_attributes<T: DeserializeOwned>(
&self,
address: HumanAddr,
name: String
) -> StdResult<Vec<T>>
[src]
&self,
address: HumanAddr,
name: String
) -> StdResult<Vec<T>>
Get named JSON attributes from an account and deserialize the values. Attribute values with the same name must be able to be deserialized to the same type.
pub fn get_marker_by_address(&self, address: HumanAddr) -> StdResult<Marker>
[src]
Get a marker by address.
pub fn get_marker_by_denom(&self, denom: String) -> StdResult<Marker>
[src]
Get a marker by denomination.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for ProvenanceQuerier<'a>
[src]
impl<'a> !Send for ProvenanceQuerier<'a>
[src]
impl<'a> !Sync for ProvenanceQuerier<'a>
[src]
impl<'a> Unpin for ProvenanceQuerier<'a>
[src]
impl<'a> !UnwindSafe for ProvenanceQuerier<'a>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,