pub struct LogicalTypeOptions {
pub min_length: Option<i64>,
pub max_length: Option<i64>,
pub pattern: Option<String>,
pub format: Option<String>,
pub minimum: Option<Value>,
pub maximum: Option<Value>,
pub exclusive_minimum: Option<Value>,
pub exclusive_maximum: Option<Value>,
pub precision: Option<i32>,
pub scale: Option<i32>,
}Expand description
ODCS v3.1.0 logicalTypeOptions for additional type metadata
Fields§
§min_length: Option<i64>Minimum length for strings
max_length: Option<i64>Maximum length for strings
pattern: Option<String>Regex pattern for strings
format: Option<String>Format hint (e.g., “email”, “uuid”, “uri”)
minimum: Option<Value>Minimum value for numbers/dates
maximum: Option<Value>Maximum value for numbers/dates
exclusive_minimum: Option<Value>Exclusive minimum for numbers
exclusive_maximum: Option<Value>Exclusive maximum for numbers
precision: Option<i32>Precision for decimals
scale: Option<i32>Scale for decimals
Implementations§
Trait Implementations§
Source§impl Clone for LogicalTypeOptions
impl Clone for LogicalTypeOptions
Source§fn clone(&self) -> LogicalTypeOptions
fn clone(&self) -> LogicalTypeOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LogicalTypeOptions
impl Debug for LogicalTypeOptions
Source§impl Default for LogicalTypeOptions
impl Default for LogicalTypeOptions
Source§fn default() -> LogicalTypeOptions
fn default() -> LogicalTypeOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LogicalTypeOptions
impl<'de> Deserialize<'de> for LogicalTypeOptions
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LogicalTypeOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LogicalTypeOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LogicalTypeOptions
impl PartialEq for LogicalTypeOptions
Source§impl Serialize for LogicalTypeOptions
impl Serialize for LogicalTypeOptions
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for LogicalTypeOptions
Auto Trait Implementations§
impl Freeze for LogicalTypeOptions
impl RefUnwindSafe for LogicalTypeOptions
impl Send for LogicalTypeOptions
impl Sync for LogicalTypeOptions
impl Unpin for LogicalTypeOptions
impl UnwindSafe for LogicalTypeOptions
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