pub trait Type: Send + Sync {
type RawValueType;
type RawElementValueType;
const IS_REQUIRED: bool;
// Required methods
fn name() -> Cow<'static, str>;
fn schema_ref() -> MetaSchemaRef;
fn as_raw_value(&self) -> Option<&Self::RawValueType>;
fn raw_element_iter<'a>(
&'a self,
) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>;
// Provided methods
fn register(registry: &mut Registry) { ... }
fn is_empty(&self) -> bool { ... }
fn is_none(&self) -> bool { ... }
}Expand description
Represents an OpenAPI type.
Required Associated Constants§
Sourceconst IS_REQUIRED: bool
const IS_REQUIRED: bool
If it is true, it means that this type is required.
Required Associated Types§
Sourcetype RawValueType
type RawValueType
The raw type used for validator.
Usually it is Self, but the wrapper type is its internal type.
For example:
i32::RawValueType is i32
Option<i32>::RawValueType is i32.
Sourcetype RawElementValueType
type RawElementValueType
The raw element type used for validator.
Required Methods§
Sourcefn schema_ref() -> MetaSchemaRef
fn schema_ref() -> MetaSchemaRef
Get schema reference of this type.
Sourcefn as_raw_value(&self) -> Option<&Self::RawValueType>
fn as_raw_value(&self) -> Option<&Self::RawValueType>
Returns a reference to the raw value.
Sourcefn raw_element_iter<'a>(
&'a self,
) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Returns an iterator for traversing the elements.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl Type for &str
impl Type for &str
const IS_REQUIRED: bool = true
type RawValueType = &str
type RawElementValueType = &str
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'b>( &'b self, ) -> Box<dyn Iterator<Item = &'b Self::RawElementValueType> + 'b>
Source§impl Type for IpAddr
impl Type for IpAddr
const IS_REQUIRED: bool = true
type RawValueType = IpAddr
type RawElementValueType = IpAddr
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for IpNet
impl Type for IpNet
const IS_REQUIRED: bool = true
type RawValueType = IpNet
type RawElementValueType = IpNet
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for Value
impl Type for Value
const IS_REQUIRED: bool = true
type RawValueType = Value
type RawElementValueType = Value
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for bool
impl Type for bool
const IS_REQUIRED: bool = true
type RawValueType = bool
type RawElementValueType = bool
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for char
impl Type for char
const IS_REQUIRED: bool = true
type RawValueType = char
type RawElementValueType = char
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for f32
impl Type for f32
const IS_REQUIRED: bool = true
type RawValueType = f32
type RawElementValueType = f32
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for f64
impl Type for f64
const IS_REQUIRED: bool = true
type RawValueType = f64
type RawElementValueType = f64
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for i8
impl Type for i8
const IS_REQUIRED: bool = true
type RawValueType = i8
type RawElementValueType = i8
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for i16
impl Type for i16
const IS_REQUIRED: bool = true
type RawValueType = i16
type RawElementValueType = i16
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for i32
impl Type for i32
const IS_REQUIRED: bool = true
type RawValueType = i32
type RawElementValueType = i32
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for i64
impl Type for i64
const IS_REQUIRED: bool = true
type RawValueType = i64
type RawElementValueType = i64
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for u8
impl Type for u8
const IS_REQUIRED: bool = true
type RawValueType = u8
type RawElementValueType = u8
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for u16
impl Type for u16
const IS_REQUIRED: bool = true
type RawValueType = u16
type RawElementValueType = u16
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for u32
impl Type for u32
const IS_REQUIRED: bool = true
type RawValueType = u32
type RawElementValueType = u32
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for u64
impl Type for u64
const IS_REQUIRED: bool = true
type RawValueType = u64
type RawElementValueType = u64
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for usize
impl Type for usize
const IS_REQUIRED: bool = true
type RawValueType = usize
type RawElementValueType = usize
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for String
impl Type for String
const IS_REQUIRED: bool = true
type RawValueType = String
type RawElementValueType = String
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
fn is_empty(&self) -> bool
Source§impl Type for Ipv4Addr
impl Type for Ipv4Addr
const IS_REQUIRED: bool = true
type RawValueType = Ipv4Addr
type RawElementValueType = Ipv4Addr
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for Ipv6Addr
impl Type for Ipv6Addr
const IS_REQUIRED: bool = true
type RawValueType = Ipv6Addr
type RawElementValueType = Ipv6Addr
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for NonZero<i8>
impl Type for NonZero<i8>
const IS_REQUIRED: bool = true
type RawValueType = NonZero<i8>
type RawElementValueType = NonZero<i8>
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for NonZero<i16>
impl Type for NonZero<i16>
const IS_REQUIRED: bool = true
type RawValueType = NonZero<i16>
type RawElementValueType = NonZero<i16>
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for NonZero<i32>
impl Type for NonZero<i32>
const IS_REQUIRED: bool = true
type RawValueType = NonZero<i32>
type RawElementValueType = NonZero<i32>
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for NonZero<i64>
impl Type for NonZero<i64>
const IS_REQUIRED: bool = true
type RawValueType = NonZero<i64>
type RawElementValueType = NonZero<i64>
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for NonZero<u8>
impl Type for NonZero<u8>
const IS_REQUIRED: bool = true
type RawValueType = NonZero<u8>
type RawElementValueType = NonZero<u8>
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for NonZero<u16>
impl Type for NonZero<u16>
const IS_REQUIRED: bool = true
type RawValueType = NonZero<u16>
type RawElementValueType = NonZero<u16>
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for NonZero<u32>
impl Type for NonZero<u32>
const IS_REQUIRED: bool = true
type RawValueType = NonZero<u32>
type RawElementValueType = NonZero<u32>
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for NonZero<u64>
impl Type for NonZero<u64>
const IS_REQUIRED: bool = true
type RawValueType = NonZero<u64>
type RawElementValueType = NonZero<u64>
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for NonZero<usize>
impl Type for NonZero<usize>
const IS_REQUIRED: bool = true
type RawValueType = NonZero<usize>
type RawElementValueType = NonZero<usize>
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for Duration
Available on crate feature humantime only.
impl Type for Duration
Available on crate feature
humantime only.const IS_REQUIRED: bool = true
type RawValueType = Duration
type RawElementValueType = Duration
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for ObjectId
Available on crate feature bson only.
impl Type for ObjectId
Available on crate feature
bson only.const IS_REQUIRED: bool = true
type RawValueType = ObjectId
type RawElementValueType = ObjectId
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for DateTime<FixedOffset>
Available on crate feature chrono only.
impl Type for DateTime<FixedOffset>
Available on crate feature
chrono only.const IS_REQUIRED: bool = true
type RawValueType = DateTime<FixedOffset>
type RawElementValueType = DateTime<FixedOffset>
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for DateTime<Local>
Available on crate feature chrono only.
impl Type for DateTime<Local>
Available on crate feature
chrono only.const IS_REQUIRED: bool = true
type RawValueType = DateTime<Local>
type RawElementValueType = DateTime<Local>
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for DateTime<Utc>
Available on crate feature chrono only.
impl Type for DateTime<Utc>
Available on crate feature
chrono only.const IS_REQUIRED: bool = true
type RawValueType = DateTime<Utc>
type RawElementValueType = DateTime<Utc>
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for NaiveDate
Available on crate feature chrono only.
impl Type for NaiveDate
Available on crate feature
chrono only.const IS_REQUIRED: bool = true
type RawValueType = NaiveDate
type RawElementValueType = NaiveDate
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for NaiveDateTime
Available on crate feature chrono only.
impl Type for NaiveDateTime
Available on crate feature
chrono only.const IS_REQUIRED: bool = true
type RawValueType = NaiveDateTime
type RawElementValueType = NaiveDateTime
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for NaiveTime
Available on crate feature chrono only.
impl Type for NaiveTime
Available on crate feature
chrono only.const IS_REQUIRED: bool = true
type RawValueType = NaiveTime
type RawElementValueType = NaiveTime
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for LineString
Available on crate feature geo only.
impl Type for LineString
Available on crate feature
geo only.const IS_REQUIRED: bool = true
type RawValueType = LineString
type RawElementValueType = LineString
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn register(registry: &mut Registry)
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for MultiLineString
Available on crate feature geo only.
impl Type for MultiLineString
Available on crate feature
geo only.const IS_REQUIRED: bool = true
type RawValueType = MultiLineString
type RawElementValueType = MultiLineString
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn register(registry: &mut Registry)
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for MultiPoint
Available on crate feature geo only.
impl Type for MultiPoint
Available on crate feature
geo only.const IS_REQUIRED: bool = true
type RawValueType = MultiPoint
type RawElementValueType = MultiPoint
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn register(registry: &mut Registry)
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for MultiPolygon
Available on crate feature geo only.
impl Type for MultiPolygon
Available on crate feature
geo only.const IS_REQUIRED: bool = true
type RawValueType = MultiPolygon
type RawElementValueType = MultiPolygon
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn register(registry: &mut Registry)
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for Point
Available on crate feature geo only.
impl Type for Point
Available on crate feature
geo only.const IS_REQUIRED: bool = true
type RawValueType = Point
type RawElementValueType = Point
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn register(registry: &mut Registry)
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for Polygon
Available on crate feature geo only.
impl Type for Polygon
Available on crate feature
geo only.const IS_REQUIRED: bool = true
type RawValueType = Polygon
type RawElementValueType = Polygon
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn register(registry: &mut Registry)
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for Uri
impl Type for Uri
const IS_REQUIRED: bool = true
type RawValueType = Uri
type RawElementValueType = Uri
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for Duration
Available on crate feature humantime only.
impl Type for Duration
Available on crate feature
humantime only.const IS_REQUIRED: bool = true
type RawValueType = Duration
type RawElementValueType = Duration
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for Ipv4Net
impl Type for Ipv4Net
const IS_REQUIRED: bool = true
type RawValueType = Ipv4Net
type RawElementValueType = Ipv4Net
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for Ipv6Net
impl Type for Ipv6Net
const IS_REQUIRED: bool = true
type RawValueType = Ipv6Net
type RawElementValueType = Ipv6Net
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for Struct
Available on crate feature prost-wkt-types only.
impl Type for Struct
Available on crate feature
prost-wkt-types only.const IS_REQUIRED: bool = true
type RawValueType = Struct
type RawElementValueType = <Value as Type>::RawValueType
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
fn is_empty(&self) -> bool
Source§impl Type for Value
Available on crate feature prost-wkt-types only.
impl Type for Value
Available on crate feature
prost-wkt-types only.const IS_REQUIRED: bool = true
type RawValueType = Value
type RawElementValueType = Value
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
fn is_empty(&self) -> bool
Source§impl Type for Duration
Available on crate feature prost-wkt-types only.
impl Type for Duration
Available on crate feature
prost-wkt-types only.const IS_REQUIRED: bool = true
type RawValueType = Duration
type RawElementValueType = Duration
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for Timestamp
Available on crate feature prost-wkt-types only.
impl Type for Timestamp
Available on crate feature
prost-wkt-types only.const IS_REQUIRED: bool = true
type RawValueType = Timestamp
type RawElementValueType = Timestamp
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for Regex
impl Type for Regex
const IS_REQUIRED: bool = true
type RawValueType = Regex
type RawElementValueType = Regex
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for Decimal
Available on crate feature rust_decimal only.
impl Type for Decimal
Available on crate feature
rust_decimal only.const IS_REQUIRED: bool = true
type RawValueType = Decimal
type RawElementValueType = Decimal
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for Date
Available on crate feature time only.
impl Type for Date
Available on crate feature
time only.const IS_REQUIRED: bool = true
type RawValueType = Date
type RawElementValueType = Date
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for OffsetDateTime
Available on crate feature time only.
impl Type for OffsetDateTime
Available on crate feature
time only.const IS_REQUIRED: bool = true
type RawValueType = OffsetDateTime
type RawElementValueType = OffsetDateTime
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for PrimitiveDateTime
Available on crate feature time only.
impl Type for PrimitiveDateTime
Available on crate feature
time only.const IS_REQUIRED: bool = true
type RawValueType = PrimitiveDateTime
type RawElementValueType = PrimitiveDateTime
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for Time
Available on crate feature time only.
impl Type for Time
Available on crate feature
time only.const IS_REQUIRED: bool = true
type RawValueType = Time
type RawElementValueType = Time
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for Url
Available on crate feature url only.
impl Type for Url
Available on crate feature
url only.const IS_REQUIRED: bool = true
type RawValueType = Url
type RawElementValueType = Url
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl Type for Uuid
Available on crate feature uuid only.
impl Type for Uuid
Available on crate feature
uuid only.const IS_REQUIRED: bool = true
type RawValueType = Uuid
type RawElementValueType = Uuid
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl<K, V> Type for BTreeMap<K, V>
impl<K, V> Type for BTreeMap<K, V>
const IS_REQUIRED: bool = true
type RawValueType = BTreeMap<K, V>
type RawElementValueType = <V as Type>::RawValueType
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn register(registry: &mut Registry)
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
fn is_empty(&self) -> bool
Source§impl<K, V, R> Type for HashMap<K, V, R>
impl<K, V, R> Type for HashMap<K, V, R>
const IS_REQUIRED: bool = true
type RawValueType = HashMap<K, V, R>
type RawElementValueType = <V as Type>::RawValueType
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn register(registry: &mut Registry)
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
fn is_empty(&self) -> bool
Source§impl<T: Type> Type for &[T]
impl<T: Type> Type for &[T]
const IS_REQUIRED: bool = true
type RawValueType = &[T]
type RawElementValueType = <T as Type>::RawValueType
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn register(registry: &mut Registry)
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
fn is_empty(&self) -> bool
Source§impl<T: Type> Type for Option<T>
impl<T: Type> Type for Option<T>
const IS_REQUIRED: bool = false
type RawValueType = <T as Type>::RawValueType
type RawElementValueType = <T as Type>::RawElementValueType
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn register(registry: &mut Registry)
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
fn is_none(&self) -> bool
Source§impl<T: Type> Type for &T
impl<T: Type> Type for &T
const IS_REQUIRED: bool = T::IS_REQUIRED
type RawValueType = <T as Type>::RawValueType
type RawElementValueType = <T as Type>::RawElementValueType
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn register(registry: &mut Registry)
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl<T: Type> Type for Box<T>
impl<T: Type> Type for Box<T>
const IS_REQUIRED: bool = T::IS_REQUIRED
type RawValueType = <T as Type>::RawValueType
type RawElementValueType = <T as Type>::RawElementValueType
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn register(registry: &mut Registry)
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl<T: Type> Type for BTreeSet<T>
impl<T: Type> Type for BTreeSet<T>
const IS_REQUIRED: bool = true
type RawValueType = BTreeSet<T>
type RawElementValueType = <T as Type>::RawValueType
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn register(registry: &mut Registry)
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
fn is_empty(&self) -> bool
Source§impl<T: Type> Type for Arc<T>
impl<T: Type> Type for Arc<T>
const IS_REQUIRED: bool = T::IS_REQUIRED
type RawValueType = <T as Type>::RawValueType
type RawElementValueType = <T as Type>::RawElementValueType
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn register(registry: &mut Registry)
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Source§impl<T: Type> Type for Vec<T>
impl<T: Type> Type for Vec<T>
const IS_REQUIRED: bool = true
type RawValueType = Vec<T>
type RawElementValueType = <T as Type>::RawValueType
fn name() -> Cow<'static, str>
fn schema_ref() -> MetaSchemaRef
fn register(registry: &mut Registry)
fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
fn is_empty(&self) -> bool
Source§impl<T: Type> Type for Json<T>
Available on crate feature sqlx only.
impl<T: Type> Type for Json<T>
Available on crate feature
sqlx only.