pub struct SchemaInfo {
pub data_type: String,
pub required: Option<bool>,
pub format: Option<String>,
pub minimum: Option<f64>,
pub maximum: Option<f64>,
pub min_length: Option<usize>,
pub max_length: Option<usize>,
pub pattern: Option<String>,
pub enum_values: Option<Vec<Value>>,
pub additional_properties: Option<bool>,
}Will be extracted to mockforge-contracts crate
Expand description
Detailed schema constraint information for validation errors
Fieldsยง
ยงdata_type: StringWill be extracted to mockforge-contracts crate
Expected data type
required: Option<bool>Will be extracted to mockforge-contracts crate
Required constraint
format: Option<String>Will be extracted to mockforge-contracts crate
Format constraint (e.g., โemailโ, โuuidโ)
minimum: Option<f64>Will be extracted to mockforge-contracts crate
Minimum value constraint
maximum: Option<f64>Will be extracted to mockforge-contracts crate
Maximum value constraint
min_length: Option<usize>Will be extracted to mockforge-contracts crate
Minimum length for strings/arrays
max_length: Option<usize>Will be extracted to mockforge-contracts crate
Maximum length for strings/arrays
pattern: Option<String>Will be extracted to mockforge-contracts crate
Regex pattern for strings
enum_values: Option<Vec<Value>>Will be extracted to mockforge-contracts crate
Enum values if applicable
additional_properties: Option<bool>Will be extracted to mockforge-contracts crate
Whether this field accepts additional properties
Trait Implementationsยง
Sourceยงimpl Clone for SchemaInfo
impl Clone for SchemaInfo
Sourceยงfn clone(&self) -> SchemaInfo
fn clone(&self) -> SchemaInfo
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSourceยงimpl Debug for SchemaInfo
impl Debug for SchemaInfo
Sourceยงimpl<'de> Deserialize<'de> for SchemaInfo
impl<'de> Deserialize<'de> for SchemaInfo
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>,
Auto Trait Implementationsยง
impl Freeze for SchemaInfo
impl RefUnwindSafe for SchemaInfo
impl Send for SchemaInfo
impl Sync for SchemaInfo
impl Unpin for SchemaInfo
impl UnsafeUnpin for SchemaInfo
impl UnwindSafe for SchemaInfo
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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more