pub struct FormatConfig {
pub name: Cow<'static, str>,
pub config: Value,
}Expand description
Data format specification used to parse raw data received from the endpoint or to encode data sent to the endpoint.
Fields§
§name: Cow<'static, str>Format name, e.g., “csv”, “json”, “bincode”, etc.
config: ValueFormat-specific parser or encoder configuration.
Trait Implementations§
Source§impl Clone for FormatConfig
impl Clone for FormatConfig
Source§fn clone(&self) -> FormatConfig
fn clone(&self) -> FormatConfig
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 FormatConfig
impl Debug for FormatConfig
Source§impl<'de> Deserialize<'de> for FormatConfig
impl<'de> Deserialize<'de> for FormatConfig
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 Hash for FormatConfig
impl Hash for FormatConfig
Source§impl PartialEq for FormatConfig
impl PartialEq for FormatConfig
Source§impl Serialize for FormatConfig
impl Serialize for FormatConfig
Source§impl<'__s> ToSchema<'__s> for FormatConfig
impl<'__s> ToSchema<'__s> for FormatConfig
impl Eq for FormatConfig
impl StructuralPartialEq for FormatConfig
Auto Trait Implementations§
impl Freeze for FormatConfig
impl RefUnwindSafe for FormatConfig
impl Send for FormatConfig
impl Sync for FormatConfig
impl Unpin for FormatConfig
impl UnwindSafe for FormatConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.