Add more trait implementations to MaybeUndefined

Closes #267
This commit is contained in:
William Myers 2020-09-19 14:10:54 -07:00
parent 6095383019
commit c117cc0bf5

View File

@ -1,4 +1,5 @@
use crate::{registry, InputValueResult, InputValueType, Type, Value};
use serde::{Deserialize, Serialize};
use std::borrow::Cow;
/// Similar to `Option`, but it has three states, `undefined`, `null` and `x`.
@ -45,6 +46,7 @@ use std::borrow::Cow;
/// }
/// ```
#[allow(missing_docs)]
#[derive(Serialize, Deserialize, Clone, Debug)]
pub enum MaybeUndefined<T> {
Undefined,
Null,