pub struct OApiParameter { /* private fields */ }Expand description
§The OpenApi parameter object
Implementations§
Source§impl OApiParameter
impl OApiParameter
Sourcepub fn in_(&self) -> &OApiParameterLocation
pub fn in_(&self) -> &OApiParameterLocation
Position of the parameter
Sourcepub fn description(&self) -> &Option<String>
pub fn description(&self) -> &Option<String>
Description of the parameter
Sourcepub fn deprecated(&self) -> &bool
pub fn deprecated(&self) -> &bool
Mark the parameter as deprecated
Sourcepub fn allow_empty_value(&self) -> &bool
pub fn allow_empty_value(&self) -> &bool
Mark if the parameter should allow empty values
Sourcepub fn style(&self) -> &Option<OApiParameterStyle>
pub fn style(&self) -> &Option<OApiParameterStyle>
Style of the parameter
Sourcepub fn allow_reserved(&self) -> &bool
pub fn allow_reserved(&self) -> &bool
Mark if the paramter should allow reserved characters
Sourcepub fn schema(&self) -> &Option<OperatorSelector<OApiSchema>>
pub fn schema(&self) -> &Option<OperatorSelector<OApiSchema>>
Schema description the parameter
Sourcepub fn example(&self) -> &Option<OApiExampleSelector>
pub fn example(&self) -> &Option<OApiExampleSelector>
Example object for the parameter
Trait Implementations§
Source§impl Clone for OApiParameter
impl Clone for OApiParameter
Source§fn clone(&self) -> OApiParameter
fn clone(&self) -> OApiParameter
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 OApiParameter
impl Debug for OApiParameter
Source§impl<'de> Deserialize<'de> for OApiParameter
impl<'de> Deserialize<'de> for OApiParameter
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 OApiCheckTrait for OApiParameter
impl OApiCheckTrait for OApiParameter
Source§fn oapi_check(
&self,
root: &SparseRoot<OApiDocument>,
bread_crumb: &mut Vec<String>,
) -> Result<(), OApiError>
fn oapi_check( &self, root: &SparseRoot<OApiDocument>, bread_crumb: &mut Vec<String>, ) -> Result<(), OApiError>
Check the current object, if any checks are to be performed, then checks
its inner attributes
Source§fn oapi_check_inner(
&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>
Check every inner attributes of the object
Source§impl OApiExtensionExtractor for OApiParameter
impl OApiExtensionExtractor for OApiParameter
Source§fn oapi_raw_ext(&self) -> &HashMap<String, Value>
fn oapi_raw_ext(&self) -> &HashMap<String, Value>
Return a map of value of the additionnal keys for that object
Source§fn oapi_extract_ext<S>(
&self,
root: &SparseRoot<OApiDocument>,
key: &str,
) -> Result<S, OApiError>
fn oapi_extract_ext<S>( &self, root: &SparseRoot<OApiDocument>, key: &str, ) -> Result<S, OApiError>
Try to deserialize to the type
S the object at key, providing the
root of the document for any SparsePointer dereferencingSource§impl PartialEq for OApiParameter
impl PartialEq for OApiParameter
Source§impl Serialize for OApiParameter
impl Serialize for OApiParameter
Source§impl Sparsable for OApiParameter
impl Sparsable for OApiParameter
Source§fn sparse_init(
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32,
) -> Result<(), SparseError>
fn sparse_init( &mut self, state: &mut SparseState, metadata: &SparseMetadata, depth: u32, ) -> Result<(), SparseError>
Initialize recusively a Sparsable pointer
Source§fn sparse_updt(
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32,
) -> Result<(), SparseError>
fn sparse_updt( &mut self, state: &mut SparseState, metadata: &SparseMetadata, depth: u32, ) -> Result<(), SparseError>
Update recusively a Sparsable pointer
Source§fn check_depth(&self, depth: u32) -> Result<(), SparseError>
fn check_depth(&self, depth: u32) -> Result<(), SparseError>
Check if the current depth isn’t too much.
This is the cyclic pointer protection mechanism
impl StructuralPartialEq for OApiParameter
Auto Trait Implementations§
impl Freeze for OApiParameter
impl RefUnwindSafe for OApiParameter
impl Send for OApiParameter
impl Sync for OApiParameter
impl Unpin for OApiParameter
impl UnwindSafe for OApiParameter
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