Struct async_graphql::dynamic::ValueAccessor
source · pub struct ValueAccessor<'a>(_);
Available on crate feature
dynamic-schema
only.Expand description
A value accessor
Implementations
sourceimpl<'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
Auto Trait Implementations
impl<'a> RefUnwindSafe for ValueAccessor<'a>
impl<'a> Send for ValueAccessor<'a>
impl<'a> Sync for ValueAccessor<'a>
impl<'a> Unpin for ValueAccessor<'a>
impl<'a> UnwindSafe for ValueAccessor<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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