pub struct OApiLink { /* private fields */ }
Expand description
§The OpenApi link object
Implementations§
Source§impl OApiLink
impl OApiLink
Sourcepub fn description(&self) -> &Option<String>
pub fn description(&self) -> &Option<String>
A description of the link
Sourcepub fn operation_ref(&self) -> &Option<SparseRefRawInline<OApiOperation>>
pub fn operation_ref(&self) -> &Option<SparseRefRawInline<OApiOperation>>
A reference to an operation, may not be defined if operation_id
is defined
Sourcepub fn operation_id(&self) -> &Option<String>
pub fn operation_id(&self) -> &Option<String>
The id of an operation, may not be defined if operation_ref
is defined
Sourcepub fn parameters(&self) -> &HashMap<String, String>
pub fn parameters(&self) -> &HashMap<String, String>
Parameters to use for this link
Sourcepub fn request_body(&self) -> &Option<String>
pub fn request_body(&self) -> &Option<String>
A request body expression to use
Sourcepub fn server(&self) -> &Option<OApiServer>
pub fn server(&self) -> &Option<OApiServer>
A list of server to use as target
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OApiLink
impl<'de> Deserialize<'de> for OApiLink
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 OApiLink
impl OApiCheckTrait for OApiLink
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 OApiLink
impl OApiExtensionExtractor for OApiLink
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 Sparsable for OApiLink
impl Sparsable for OApiLink
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 OApiLink
Auto Trait Implementations§
impl Freeze for OApiLink
impl RefUnwindSafe for OApiLink
impl Send for OApiLink
impl Sync for OApiLink
impl Unpin for OApiLink
impl UnwindSafe for OApiLink
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