Struct oapi::OApiMediaType [−][src]
pub struct OApiMediaType { /* fields omitted */ }
Implementations
impl OApiMediaType
[src]
impl OApiMediaType
[src]pub fn schema(&self) -> &Option<OperatorSelector<OApiSchema>>
[src]
The schema defining this object for this media type
pub fn example(&self) -> &Option<OApiExampleSelector>
[src]
An example or examples to illustrate this media type schema
pub fn encoding(&self) -> &HashMap<String, OApiEncoding>
[src]
A map of the encodings to use
Trait Implementations
impl Clone for OApiMediaType
[src]
impl Clone for OApiMediaType
[src]fn clone(&self) -> OApiMediaType
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for OApiMediaType
[src]
impl Default for OApiMediaType
[src]fn default() -> OApiMediaType
[src]
impl<'de> Deserialize<'de> for OApiMediaType
[src]
impl<'de> Deserialize<'de> for OApiMediaType
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl OApiCheckTrait for OApiMediaType
[src]
impl OApiCheckTrait for OApiMediaType
[src]fn oapi_check(
&self,
root: &SparseRoot<OApiDocument>,
bread_crumb: &mut Vec<String>
) -> Result<(), OApiError>
[src]
&self,
root: &SparseRoot<OApiDocument>,
bread_crumb: &mut Vec<String>
) -> Result<(), OApiError>
fn oapi_check_inner(
&self,
root: &SparseRoot<OApiDocument>,
bread_crumb: &mut Vec<String>
) -> Result<(), OApiError>
[src]
&self,
root: &SparseRoot<OApiDocument>,
bread_crumb: &mut Vec<String>
) -> Result<(), OApiError>
impl OApiExtensionExtractor for OApiMediaType
[src]
impl OApiExtensionExtractor for OApiMediaType
[src]fn oapi_raw_ext(&self) -> &HashMap<String, Value>
[src]
fn oapi_extract_ext<S>(
&self,
root: &SparseRoot<OApiDocument>,
key: &str
) -> Result<S, OApiError> where
S: DeserializeOwned + SparsableTrait + Serialize + OApiCheckTrait,
[src]
&self,
root: &SparseRoot<OApiDocument>,
key: &str
) -> Result<S, OApiError> where
S: DeserializeOwned + SparsableTrait + Serialize + OApiCheckTrait,
impl PartialEq<OApiMediaType> for OApiMediaType
[src]
impl PartialEq<OApiMediaType> for OApiMediaType
[src]fn eq(&self, other: &OApiMediaType) -> bool
[src]
fn ne(&self, other: &OApiMediaType) -> bool
[src]
impl Serialize for OApiMediaType
[src]
impl Serialize for OApiMediaType
[src]impl Sparsable for OApiMediaType
[src]
impl Sparsable for OApiMediaType
[src]fn sparse_init(
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
[src]
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
pub fn sparse_updt(
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
[src]
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
pub fn check_depth(&self, depth: u32) -> Result<(), SparseError>
[src]
impl StructuralPartialEq for OApiMediaType
[src]
impl StructuralPartialEq for OApiMediaType
[src]Auto Trait Implementations
impl RefUnwindSafe for OApiMediaType
impl RefUnwindSafe for OApiMediaType
impl Send for OApiMediaType
impl Send for OApiMediaType
impl Sync for OApiMediaType
impl Sync for OApiMediaType
impl Unpin for OApiMediaType
impl Unpin for OApiMediaType
impl UnwindSafe for OApiMediaType
impl UnwindSafe for OApiMediaType