Enum apollo_encoder::StringValue
source · [−]pub enum StringValue {
Top {
source: String,
},
Field {
source: String,
},
Input {
source: String,
},
}
Expand description
Convenience enum to create a Description. Can be a Top
level, a Field
level or an Input
level. The variants are distinguished by the way they
get displayed, e.g. number of leading spaces.
Variants
Top
Fields
source: String
Description.
Top-level description.
Field
Fields
source: String
Description.
Field-level description. This description gets additional leading spaces.
Input
Fields
source: String
Description.
Input-level description. This description get an additional space at the end.
Trait Implementations
sourceimpl Clone for StringValue
impl Clone for StringValue
sourcefn clone(&self) -> StringValue
fn clone(&self) -> StringValue
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StringValue
impl Debug for StringValue
sourceimpl Display for StringValue
impl Display for StringValue
sourceimpl PartialEq<StringValue> for StringValue
impl PartialEq<StringValue> for StringValue
sourcefn eq(&self, other: &StringValue) -> bool
fn eq(&self, other: &StringValue) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &StringValue) -> bool
fn ne(&self, other: &StringValue) -> bool
This method tests for !=
.
impl StructuralPartialEq for StringValue
Auto Trait Implementations
impl RefUnwindSafe for StringValue
impl Send for StringValue
impl Sync for StringValue
impl Unpin for StringValue
impl UnwindSafe for StringValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more