pub struct TypeMappingRule {
pub openapi_type: String,
pub openapi_format: Option<String>,
pub odcs_type: String,
pub quality_rules: Vec<Value>,
pub field_name: Option<String>,
}Expand description
Type mapping rule for OpenAPI to ODCS conversion
Fields§
§openapi_type: StringOpenAPI type
openapi_format: Option<String>OpenAPI format (if any)
odcs_type: StringODCS type
quality_rules: Vec<Value>Quality rules to apply
field_name: Option<String>Field name pattern (if any)
Trait Implementations§
Source§impl Clone for TypeMappingRule
impl Clone for TypeMappingRule
Source§fn clone(&self) -> TypeMappingRule
fn clone(&self) -> TypeMappingRule
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 TypeMappingRule
impl Debug for TypeMappingRule
Source§impl<'de> Deserialize<'de> for TypeMappingRule
impl<'de> Deserialize<'de> for TypeMappingRule
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TypeMappingRule, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TypeMappingRule, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TypeMappingRule
impl PartialEq for TypeMappingRule
Source§impl Serialize for TypeMappingRule
impl Serialize for TypeMappingRule
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 TypeMappingRule
Auto Trait Implementations§
impl Freeze for TypeMappingRule
impl RefUnwindSafe for TypeMappingRule
impl Send for TypeMappingRule
impl Sync for TypeMappingRule
impl Unpin for TypeMappingRule
impl UnwindSafe for TypeMappingRule
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