pub enum Mode {
Read,
Write,
}Expand description
Whether a request read or wrote.
Variants§
Implementations§
Source§impl Mode
impl Mode
Sourcepub fn of_document(document: &str) -> Self
pub fn of_document(document: &str) -> Self
What a GraphQL document does.
Every mutation this source sends creates content and no query does, so the keyword
is the whole of the question — the same test crate::GitHubProjectsSource paces
its own writes by.
Trait Implementations§
impl Copy for Mode
impl Eq for Mode
Source§impl Ord for Mode
impl Ord for Mode
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Mode
impl PartialOrd for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnsafeUnpin for Mode
impl UnwindSafe for Mode
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