pub enum DirectiveValue {
Ident(String),
Int(i64),
Float(f64),
String(String),
Bool(bool),
None,
}Expand description
Values for directives
Variants§
Ident(String)
Directive with a ident value
Int(i64)
Directive with a literal value
Float(f64)
Directive with a float value
String(String)
Directive with a string value
Bool(bool)
Directive with a boolean value
None
Directive with no value
Implementations§
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for DirectiveValue
impl<'__de, __Context> BorrowDecode<'__de, __Context> for DirectiveValue
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for DirectiveValue
impl Clone for DirectiveValue
Source§fn clone(&self) -> DirectiveValue
fn clone(&self) -> DirectiveValue
Returns a duplicate 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 DirectiveValue
impl Debug for DirectiveValue
Source§impl<__Context> Decode<__Context> for DirectiveValue
impl<__Context> Decode<__Context> for DirectiveValue
Source§impl<'de> Deserialize<'de> for DirectiveValue
impl<'de> Deserialize<'de> for DirectiveValue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Encode for DirectiveValue
impl Encode for DirectiveValue
Source§impl PartialEq for DirectiveValue
impl PartialEq for DirectiveValue
Source§impl Serialize for DirectiveValue
impl Serialize for DirectiveValue
impl StructuralPartialEq for DirectiveValue
Auto Trait Implementations§
impl Freeze for DirectiveValue
impl RefUnwindSafe for DirectiveValue
impl Send for DirectiveValue
impl Sync for DirectiveValue
impl Unpin for DirectiveValue
impl UnsafeUnpin for DirectiveValue
impl UnwindSafe for DirectiveValue
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