pub struct InputValueDefinition<'a>(/* private fields */);
Implementations§
source§impl<'a> InputValueDefinition<'a>
impl<'a> InputValueDefinition<'a>
pub fn name(&self) -> &'a str
pub fn ty(&self) -> Type<'a>
pub fn description(&self) -> Option<Description<'a>>
pub fn default_value(&self) -> Option<ConstValue<'a>>
pub fn default_value_span(&self) -> Span
pub fn directives(&self) -> Iter<'a, Directive<'a>> ⓘ
pub fn span(&self) -> Span
source§impl InputValueDefinition<'_>
impl InputValueDefinition<'_>
pub fn id(&self) -> InputValueDefinitionId
Trait Implementations§
source§impl<'a> Clone for InputValueDefinition<'a>
impl<'a> Clone for InputValueDefinition<'a>
source§fn clone(&self) -> InputValueDefinition<'a>
fn clone(&self) -> InputValueDefinition<'a>
Returns a copy 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 moresource§impl Debug for InputValueDefinition<'_>
impl Debug for InputValueDefinition<'_>
source§impl IdReader for InputValueDefinition<'_>
impl IdReader for InputValueDefinition<'_>
type Id = InputValueDefinitionId
impl<'a> Copy for InputValueDefinition<'a>
Auto Trait Implementations§
impl<'a> Freeze for InputValueDefinition<'a>
impl<'a> RefUnwindSafe for InputValueDefinition<'a>
impl<'a> Send for InputValueDefinition<'a>
impl<'a> Sync for InputValueDefinition<'a>
impl<'a> Unpin for InputValueDefinition<'a>
impl<'a> UnwindSafe for InputValueDefinition<'a>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)