Struct seaography::TypeFilter
source · [−]pub struct TypeFilter<T: InputType> {
pub eq: Option<T>,
pub ne: Option<T>,
pub gt: Option<T>,
pub gte: Option<T>,
pub lt: Option<T>,
pub lte: Option<T>,
pub is_in: Option<Vec<T>>,
pub is_not_in: Option<Vec<T>>,
pub is_null: Option<bool>,
}
Fields
eq: Option<T>
ne: Option<T>
gt: Option<T>
gte: Option<T>
lt: Option<T>
lte: Option<T>
is_in: Option<Vec<T>>
is_not_in: Option<Vec<T>>
is_null: Option<bool>
Trait Implementations
sourceimpl<T: Debug + InputType> Debug for TypeFilter<T>
impl<T: Debug + InputType> Debug for TypeFilter<T>
sourceimpl InputType for TypeFilter<BinaryVector>
impl InputType for TypeFilter<BinaryVector>
type RawValueType = TypeFilter<Vec<u8, Global>>
type RawValueType = TypeFilter<Vec<u8, Global>>
The raw type used for validator. Read more
sourcefn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
sourcefn parse(value: Option<Value>) -> InputValueResult<Self>
fn parse(value: Option<Value>) -> InputValueResult<Self>
Parse from Value
. None represents undefined.
sourcefn as_raw_value(&self) -> Option<&Self::RawValueType>
fn as_raw_value(&self) -> Option<&Self::RawValueType>
Returns a reference to the raw value.
sourcefn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
sourceimpl InputType for TypeFilter<String>
impl InputType for TypeFilter<String>
type RawValueType = TypeFilter<String>
type RawValueType = TypeFilter<String>
The raw type used for validator. Read more
sourcefn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
sourcefn parse(value: Option<Value>) -> InputValueResult<Self>
fn parse(value: Option<Value>) -> InputValueResult<Self>
Parse from Value
. None represents undefined.
sourcefn as_raw_value(&self) -> Option<&Self::RawValueType>
fn as_raw_value(&self) -> Option<&Self::RawValueType>
Returns a reference to the raw value.
sourcefn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
sourceimpl InputType for TypeFilter<bool>
impl InputType for TypeFilter<bool>
type RawValueType = TypeFilter<bool>
type RawValueType = TypeFilter<bool>
The raw type used for validator. Read more
sourcefn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
sourcefn parse(value: Option<Value>) -> InputValueResult<Self>
fn parse(value: Option<Value>) -> InputValueResult<Self>
Parse from Value
. None represents undefined.
sourcefn as_raw_value(&self) -> Option<&Self::RawValueType>
fn as_raw_value(&self) -> Option<&Self::RawValueType>
Returns a reference to the raw value.
sourcefn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
sourceimpl InputType for TypeFilter<f32>
impl InputType for TypeFilter<f32>
type RawValueType = TypeFilter<f32>
type RawValueType = TypeFilter<f32>
The raw type used for validator. Read more
sourcefn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
sourcefn parse(value: Option<Value>) -> InputValueResult<Self>
fn parse(value: Option<Value>) -> InputValueResult<Self>
Parse from Value
. None represents undefined.
sourcefn as_raw_value(&self) -> Option<&Self::RawValueType>
fn as_raw_value(&self) -> Option<&Self::RawValueType>
Returns a reference to the raw value.
sourcefn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
sourceimpl InputType for TypeFilter<f64>
impl InputType for TypeFilter<f64>
type RawValueType = TypeFilter<f64>
type RawValueType = TypeFilter<f64>
The raw type used for validator. Read more
sourcefn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
sourcefn parse(value: Option<Value>) -> InputValueResult<Self>
fn parse(value: Option<Value>) -> InputValueResult<Self>
Parse from Value
. None represents undefined.
sourcefn as_raw_value(&self) -> Option<&Self::RawValueType>
fn as_raw_value(&self) -> Option<&Self::RawValueType>
Returns a reference to the raw value.
sourcefn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
sourceimpl InputType for TypeFilter<i16>
impl InputType for TypeFilter<i16>
type RawValueType = TypeFilter<i16>
type RawValueType = TypeFilter<i16>
The raw type used for validator. Read more
sourcefn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
sourcefn parse(value: Option<Value>) -> InputValueResult<Self>
fn parse(value: Option<Value>) -> InputValueResult<Self>
Parse from Value
. None represents undefined.
sourcefn as_raw_value(&self) -> Option<&Self::RawValueType>
fn as_raw_value(&self) -> Option<&Self::RawValueType>
Returns a reference to the raw value.
sourcefn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
sourceimpl InputType for TypeFilter<i32>
impl InputType for TypeFilter<i32>
type RawValueType = TypeFilter<i32>
type RawValueType = TypeFilter<i32>
The raw type used for validator. Read more
sourcefn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
sourcefn parse(value: Option<Value>) -> InputValueResult<Self>
fn parse(value: Option<Value>) -> InputValueResult<Self>
Parse from Value
. None represents undefined.
sourcefn as_raw_value(&self) -> Option<&Self::RawValueType>
fn as_raw_value(&self) -> Option<&Self::RawValueType>
Returns a reference to the raw value.
sourcefn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
sourceimpl InputType for TypeFilter<i64>
impl InputType for TypeFilter<i64>
type RawValueType = TypeFilter<i64>
type RawValueType = TypeFilter<i64>
The raw type used for validator. Read more
sourcefn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
sourcefn parse(value: Option<Value>) -> InputValueResult<Self>
fn parse(value: Option<Value>) -> InputValueResult<Self>
Parse from Value
. None represents undefined.
sourcefn as_raw_value(&self) -> Option<&Self::RawValueType>
fn as_raw_value(&self) -> Option<&Self::RawValueType>
Returns a reference to the raw value.
sourcefn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
sourceimpl InputType for TypeFilter<i8>
impl InputType for TypeFilter<i8>
type RawValueType = TypeFilter<i8>
type RawValueType = TypeFilter<i8>
The raw type used for validator. Read more
sourcefn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
sourcefn parse(value: Option<Value>) -> InputValueResult<Self>
fn parse(value: Option<Value>) -> InputValueResult<Self>
Parse from Value
. None represents undefined.
sourcefn as_raw_value(&self) -> Option<&Self::RawValueType>
fn as_raw_value(&self) -> Option<&Self::RawValueType>
Returns a reference to the raw value.
sourcefn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
sourceimpl InputType for TypeFilter<u16>
impl InputType for TypeFilter<u16>
type RawValueType = TypeFilter<u16>
type RawValueType = TypeFilter<u16>
The raw type used for validator. Read more
sourcefn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
sourcefn parse(value: Option<Value>) -> InputValueResult<Self>
fn parse(value: Option<Value>) -> InputValueResult<Self>
Parse from Value
. None represents undefined.
sourcefn as_raw_value(&self) -> Option<&Self::RawValueType>
fn as_raw_value(&self) -> Option<&Self::RawValueType>
Returns a reference to the raw value.
sourcefn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
sourceimpl InputType for TypeFilter<u32>
impl InputType for TypeFilter<u32>
type RawValueType = TypeFilter<u32>
type RawValueType = TypeFilter<u32>
The raw type used for validator. Read more
sourcefn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
sourcefn parse(value: Option<Value>) -> InputValueResult<Self>
fn parse(value: Option<Value>) -> InputValueResult<Self>
Parse from Value
. None represents undefined.
sourcefn as_raw_value(&self) -> Option<&Self::RawValueType>
fn as_raw_value(&self) -> Option<&Self::RawValueType>
Returns a reference to the raw value.
sourcefn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
sourceimpl InputType for TypeFilter<u64>
impl InputType for TypeFilter<u64>
type RawValueType = TypeFilter<u64>
type RawValueType = TypeFilter<u64>
The raw type used for validator. Read more
sourcefn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
sourcefn parse(value: Option<Value>) -> InputValueResult<Self>
fn parse(value: Option<Value>) -> InputValueResult<Self>
Parse from Value
. None represents undefined.
sourcefn as_raw_value(&self) -> Option<&Self::RawValueType>
fn as_raw_value(&self) -> Option<&Self::RawValueType>
Returns a reference to the raw value.
sourcefn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
sourceimpl InputType for TypeFilter<u8>
impl InputType for TypeFilter<u8>
type RawValueType = TypeFilter<u8>
type RawValueType = TypeFilter<u8>
The raw type used for validator. Read more
sourcefn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
sourcefn parse(value: Option<Value>) -> InputValueResult<Self>
fn parse(value: Option<Value>) -> InputValueResult<Self>
Parse from Value
. None represents undefined.
sourcefn as_raw_value(&self) -> Option<&Self::RawValueType>
fn as_raw_value(&self) -> Option<&Self::RawValueType>
Returns a reference to the raw value.
sourcefn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
impl InputObjectType for TypeFilter<BinaryVector>
impl InputObjectType for TypeFilter<String>
impl InputObjectType for TypeFilter<bool>
impl InputObjectType for TypeFilter<f32>
impl InputObjectType for TypeFilter<f64>
impl InputObjectType for TypeFilter<i16>
impl InputObjectType for TypeFilter<i32>
impl InputObjectType for TypeFilter<i64>
impl InputObjectType for TypeFilter<i8>
impl InputObjectType for TypeFilter<u16>
impl InputObjectType for TypeFilter<u32>
impl InputObjectType for TypeFilter<u64>
impl InputObjectType for TypeFilter<u8>
Auto Trait Implementations
impl<T> RefUnwindSafe for TypeFilter<T>where
T: RefUnwindSafe,
impl<T> Send for TypeFilter<T>
impl<T> Sync for TypeFilter<T>
impl<T> Unpin for TypeFilter<T>where
T: Unpin,
impl<T> UnwindSafe for TypeFilter<T>where
T: UnwindSafe,
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