Struct oapi::OApiParameter [−][src]
pub struct OApiParameter { /* fields omitted */ }
Implementations
impl OApiParameter
[src]
impl OApiParameter
[src]pub fn name(&self) -> &String
[src]
Name of the parameter
pub fn in_(&self) -> &OApiParameterLocation
[src]
Position of the parameter
pub fn description(&self) -> &Option<String>
[src]
Description of the parameter
pub fn required(&self) -> &Option<bool>
[src]
Mark the parameter as mandatory
pub fn deprecated(&self) -> &bool
[src]
Mark the parameter as deprecated
pub fn allow_empty_value(&self) -> &bool
[src]
Mark if the parameter should allow empty values
pub fn style(&self) -> &Option<OApiParameterStyle>
[src]
Style of the parameter
pub fn explode(&self) -> &bool
[src]
Mark if the parameter should be exploded
pub fn allow_reserved(&self) -> &bool
[src]
Mark if the paramter should allow reserved characters
pub fn schema(&self) -> &Option<OperatorSelector<OApiSchema>>
[src]
Schema description the parameter
pub fn example(&self) -> &Option<OApiExampleSelector>
[src]
Example object for the parameter
Trait Implementations
impl Clone for OApiParameter
[src]
impl Clone for OApiParameter
[src]fn clone(&self) -> OApiParameter
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'de> Deserialize<'de> for OApiParameter
[src]
impl<'de> Deserialize<'de> for OApiParameter
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl OApiCheckTrait for OApiParameter
[src]
impl OApiCheckTrait for OApiParameter
[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 OApiParameter
[src]
impl OApiExtensionExtractor for OApiParameter
[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<OApiParameter> for OApiParameter
[src]
impl PartialEq<OApiParameter> for OApiParameter
[src]fn eq(&self, other: &OApiParameter) -> bool
[src]
fn ne(&self, other: &OApiParameter) -> bool
[src]
impl Serialize for OApiParameter
[src]
impl Serialize for OApiParameter
[src]impl Sparsable for OApiParameter
[src]
impl Sparsable for OApiParameter
[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 OApiParameter
[src]
impl StructuralPartialEq for OApiParameter
[src]Auto Trait Implementations
impl RefUnwindSafe for OApiParameter
impl RefUnwindSafe for OApiParameter
impl Send for OApiParameter
impl Send for OApiParameter
impl Sync for OApiParameter
impl Sync for OApiParameter
impl Unpin for OApiParameter
impl Unpin for OApiParameter
impl UnwindSafe for OApiParameter
impl UnwindSafe for OApiParameter