Struct async_graphql::dynamic::ValueAccessor
source · pub struct ValueAccessor<'a>(_);
Available on crate feature
dynamic-schema
only.Expand description
A value accessor
Implementations§
source§impl<'a> ValueAccessor<'a>
impl<'a> ValueAccessor<'a>
sourcepub fn object(&self) -> Result<ObjectAccessor<'_>>
pub fn object(&self) -> Result<ObjectAccessor<'_>>
Returns the object accessor
sourcepub fn list(&self) -> Result<ListAccessor<'_>>
pub fn list(&self) -> Result<ListAccessor<'_>>
Returns the list accessor
sourcepub fn deserialize<T: DeserializeOwned>(&self) -> Result<T>
pub fn deserialize<T: DeserializeOwned>(&self) -> Result<T>
Deserialize the value to T