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
Top-level description.
Field
Field-level description. This description gets additional leading spaces.
Input
Input-level description. This description get an additional space at the end.
Trait Implementations§
source§impl Clone for StringValue
impl Clone for StringValue
source§fn clone(&self) -> StringValue
fn clone(&self) -> StringValue
Returns a copy 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 StringValue
impl Debug for StringValue
source§impl Display for StringValue
impl Display for StringValue
source§impl PartialEq<StringValue> for StringValue
impl PartialEq<StringValue> for StringValue
source§fn 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 ==
.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§
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.