#[non_exhaustive]pub struct UnionType {
pub name: String,
pub description: Option<String>,
pub possible_types: Vec<String>,
}Expand description
GraphQL Unions represent objects that could be any of a list of GraphQL Object types.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe name of the union
description: Option<String>A description of the union
possible_types: Vec<String>The set of types that this interface could be
Trait Implementations§
impl Eq for UnionType
impl StructuralPartialEq for UnionType
Auto Trait Implementations§
impl Freeze for UnionType
impl RefUnwindSafe for UnionType
impl Send for UnionType
impl Sync for UnionType
impl Unpin for UnionType
impl UnwindSafe for UnionType
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