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 moresourceimpl 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
impl Eq for StringValue
impl StructuralEq for StringValue
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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