Struct oapi::OApiHeader [−][src]
pub struct OApiHeader { /* fields omitted */ }
Implementations
impl OApiHeader
[src]
impl OApiHeader
[src]pub fn description(&self) -> &Option<String>
[src]
A description of the header object
pub fn required(&self) -> &bool
[src]
Mark the header as required
pub fn deprecated(&self) -> &bool
[src]
Mark the header as deprecated
pub fn allow_empty_value(&self) -> &bool
[src]
Mark the header as accepting empty values
pub fn style(&self) -> &Option<OApiParameterStyle>
[src]
Describe the header style
pub fn explode(&self) -> &bool
[src]
Mark the header as exploded
pub fn allow_reserved(&self) -> &bool
[src]
Mark the header as accepting reserved characters
pub fn schema(&self) -> &Option<OperatorSelector<OApiSchema>>
[src]
Describe the schema of the header
pub fn example(&self) -> &Option<OApiExampleSelector>
[src]
An example of the header to illustrate its schema
Trait Implementations
impl Clone for OApiHeader
[src]
impl Clone for OApiHeader
[src]fn clone(&self) -> OApiHeader
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for OApiHeader
[src]
impl Default for OApiHeader
[src]fn default() -> OApiHeader
[src]
impl<'de> Deserialize<'de> for OApiHeader where
OApiHeader: Default,
[src]
impl<'de> Deserialize<'de> for OApiHeader where
OApiHeader: Default,
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl OApiCheckTrait for OApiHeader
[src]
impl OApiCheckTrait for OApiHeader
[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 OApiHeader
[src]
impl OApiExtensionExtractor for OApiHeader
[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<OApiHeader> for OApiHeader
[src]
impl PartialEq<OApiHeader> for OApiHeader
[src]fn eq(&self, other: &OApiHeader) -> bool
[src]
fn ne(&self, other: &OApiHeader) -> bool
[src]
impl Serialize for OApiHeader
[src]
impl Serialize for OApiHeader
[src]impl Sparsable for OApiHeader
[src]
impl Sparsable for OApiHeader
[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 OApiHeader
[src]
impl StructuralPartialEq for OApiHeader
[src]Auto Trait Implementations
impl RefUnwindSafe for OApiHeader
impl RefUnwindSafe for OApiHeader
impl Send for OApiHeader
impl Send for OApiHeader
impl Sync for OApiHeader
impl Sync for OApiHeader
impl Unpin for OApiHeader
impl Unpin for OApiHeader
impl UnwindSafe for OApiHeader
impl UnwindSafe for OApiHeader