pub struct WrapperArg {
pub name: String,
pub type_ref: String,
pub description: String,
pub values: Option<Vec<String>>,
}Expand description
A custom argument on the chain wrapper field (e.g. dataset, aggregates).
The library registers it on the GraphQL wrapper type and stores the resolved
value in ChainContext.extra for child cube resolvers to read.
Fields§
§name: StringGraphQL argument name (e.g. “dataset”).
type_ref: StringName of a type already registered in the schema (e.g. “Dataset”).
description: StringDescription shown in schema introspection.
values: Option<Vec<String>>Enum values, used by builder schema generation. None for non-enum types.
Trait Implementations§
Source§impl Clone for WrapperArg
impl Clone for WrapperArg
Source§fn clone(&self) -> WrapperArg
fn clone(&self) -> WrapperArg
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WrapperArg
impl RefUnwindSafe for WrapperArg
impl Send for WrapperArg
impl Sync for WrapperArg
impl Unpin for WrapperArg
impl UnsafeUnpin for WrapperArg
impl UnwindSafe for WrapperArg
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