#[non_exhaustive]pub enum SpecificationVersion {
Unknown,
June2018,
October2021,
}Expand description
Versions of the GraphQL specification that the CapabilitiesQuery can detect.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unknown
We were unable to determine which version of the GraphQL specification this server supports.
June2018
The GraphQL specification published in June 2018
October2021
The GraphQL specification published in October 2021
Implementations§
Source§impl SpecificationVersion
impl SpecificationVersion
Sourcepub fn capabilities(self) -> CapabilitySet
pub fn capabilities(self) -> CapabilitySet
The capabilities of a server that implements this version of the specification
Trait Implementations§
Source§impl Clone for SpecificationVersion
impl Clone for SpecificationVersion
Source§fn clone(&self) -> SpecificationVersion
fn clone(&self) -> SpecificationVersion
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 moreSource§impl Debug for SpecificationVersion
impl Debug for SpecificationVersion
Source§impl Default for SpecificationVersion
impl Default for SpecificationVersion
Source§fn default() -> SpecificationVersion
fn default() -> SpecificationVersion
Returns the “default value” for a type. Read more
Source§impl Ord for SpecificationVersion
impl Ord for SpecificationVersion
Source§fn cmp(&self, other: &SpecificationVersion) -> Ordering
fn cmp(&self, other: &SpecificationVersion) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SpecificationVersion
impl PartialEq for SpecificationVersion
Source§impl PartialOrd for SpecificationVersion
impl PartialOrd for SpecificationVersion
impl Copy for SpecificationVersion
impl Eq for SpecificationVersion
impl StructuralPartialEq for SpecificationVersion
Auto Trait Implementations§
impl Freeze for SpecificationVersion
impl RefUnwindSafe for SpecificationVersion
impl Send for SpecificationVersion
impl Sync for SpecificationVersion
impl Unpin for SpecificationVersion
impl UnwindSafe for SpecificationVersion
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