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 more