#[non_exhaustive]pub struct SchemaFieldInput {
pub name: String,
pub type: Option<SchemaFieldInputType>,
pub required: Option<bool>,
pub identity: Option<bool>,
pub enum_values: Option<Vec<String>>,
pub pattern: Option<String>,
pub min_length: Option<Option<Integer>>,
pub max_length: Option<Option<Integer>>,
pub min_value: Option<Option<f64>>,
pub max_value: Option<Option<f64>>,
pub description: Option<String>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: String§type: Option<SchemaFieldInputType>§required: Option<bool>§identity: Option<bool>§enum_values: Option<Vec<String>>§pattern: Option<String>§min_length: Option<Option<Integer>>§max_length: Option<Option<Integer>>§min_value: Option<Option<f64>>§max_value: Option<Option<f64>>§description: Option<String>Implementations§
Source§impl SchemaFieldInput
impl SchemaFieldInput
pub fn new(name: impl Into<String>) -> Self
pub fn type(self, type: SchemaFieldInputType) -> Self
pub fn required(self, required: bool) -> Self
pub fn identity(self, identity: bool) -> Self
pub fn enum_values( self, enum_values: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn pattern(self, pattern: impl Into<String>) -> Self
pub fn min_length(self, min_length: impl Into<Integer>) -> Self
pub fn min_length_null(self) -> Self
pub fn max_length(self, max_length: impl Into<Integer>) -> Self
pub fn max_length_null(self) -> Self
pub fn min_value(self, min_value: f64) -> Self
pub fn min_value_null(self) -> Self
pub fn max_value(self, max_value: f64) -> Self
pub fn max_value_null(self) -> Self
pub fn description(self, description: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for SchemaFieldInput
impl Clone for SchemaFieldInput
Source§impl Debug for SchemaFieldInput
impl Debug for SchemaFieldInput
Source§impl<'de> Deserialize<'de> for SchemaFieldInput
impl<'de> Deserialize<'de> for SchemaFieldInput
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 PartialEq for SchemaFieldInput
impl PartialEq for SchemaFieldInput
Source§impl Serialize for SchemaFieldInput
impl Serialize for SchemaFieldInput
impl StructuralPartialEq for SchemaFieldInput
Auto Trait Implementations§
impl Forget for SchemaFieldInput
impl Freeze for SchemaFieldInput
impl Move for SchemaFieldInput
impl RefUnwindSafe for SchemaFieldInput
impl Send for SchemaFieldInput
impl Sync for SchemaFieldInput
impl Unpin for SchemaFieldInput
impl UnsafeUnpin for SchemaFieldInput
impl UnwindSafe for SchemaFieldInput
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