pub struct DataFormatDef {
pub format: String,
pub schema: Option<Value>,
pub config: Option<Value>,
}Fields§
§format: String§schema: Option<Value>Optional JSON Schema for request-body validation (REST DSL
request_schema). When present, the compiled UnmarshalService is
wrapped with a JsonSchemaValidateService.
config: Option<Value>Optional per-format configuration (e.g. { "max_bytes": 67108864 }).
Deserialized by the config-aware factory per ADR-0038.
Trait Implementations§
Source§impl Clone for DataFormatDef
impl Clone for DataFormatDef
Source§fn clone(&self) -> DataFormatDef
fn clone(&self) -> DataFormatDef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DataFormatDef
impl Debug for DataFormatDef
Source§impl PartialEq for DataFormatDef
impl PartialEq for DataFormatDef
impl StructuralPartialEq for DataFormatDef
Auto Trait Implementations§
impl Freeze for DataFormatDef
impl RefUnwindSafe for DataFormatDef
impl Send for DataFormatDef
impl Sync for DataFormatDef
impl Unpin for DataFormatDef
impl UnsafeUnpin for DataFormatDef
impl UnwindSafe for DataFormatDef
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