Struct openapi_schema::Encoding
source · pub struct Encoding {
pub content_type: Option<String>,
pub headers: Option<BTreeMap<String, RefOrObject<Header>>>,
pub style: Option<String>,
pub explode: Option<bool>,
pub allow_reserved: Option<bool>,
}
Expand description
Encoding
A single encoding definition applied to a single schema property.
Fields§
§content_type: Option<String>
The Content-Type for encoding a specific property.
headers: Option<BTreeMap<String, RefOrObject<Header>>>
A map allowing additional information to be provided as headers.
style: Option<String>
Describes how a specific property value will be serialized depending on its type.
explode: Option<bool>
When this is true, property values of type array or object generate separate parameters for each value of the array, or key-value-pair of the map.
allow_reserved: Option<bool>
Determines whether the parameter value SHOULD allow reserved characters, as defined by RFC3986 :/?#[]@!$&’()*+,;= to be included without percent-encoding.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Encoding
impl<'de> Deserialize<'de> for Encoding
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 PartialEq<Encoding> for Encoding
impl PartialEq<Encoding> for Encoding
impl StructuralPartialEq for Encoding
Auto Trait Implementations§
impl RefUnwindSafe for Encoding
impl Send for Encoding
impl Sync for Encoding
impl Unpin for Encoding
impl UnwindSafe for Encoding
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