Struct oapi::OApiExample [−][src]
pub struct OApiExample { /* fields omitted */ }
Implementations
impl OApiExample
[src]
impl OApiExample
[src]pub fn summary(&self) -> &Option<String>
[src]
A summary of the example
pub fn description(&self) -> &Option<String>
[src]
A description of the example
pub fn value(&self) -> &Option<Value>
[src]
The value of the example
pub fn external_value(&self) -> &Option<String>
[src]
An url to a distant example value for this example
Trait Implementations
impl Clone for OApiExample
[src]
impl Clone for OApiExample
[src]fn clone(&self) -> OApiExample
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'de> Deserialize<'de> for OApiExample
[src]
impl<'de> Deserialize<'de> for OApiExample
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl OApiCheckTrait for OApiExample
[src]
impl OApiCheckTrait for OApiExample
[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 OApiExample
[src]
impl OApiExtensionExtractor for OApiExample
[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<OApiExample> for OApiExample
[src]
impl PartialEq<OApiExample> for OApiExample
[src]fn eq(&self, other: &OApiExample) -> bool
[src]
fn ne(&self, other: &OApiExample) -> bool
[src]
impl Serialize for OApiExample
[src]
impl Serialize for OApiExample
[src]impl Sparsable for OApiExample
[src]
impl Sparsable for OApiExample
[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 OApiExample
[src]
impl StructuralPartialEq for OApiExample
[src]Auto Trait Implementations
impl RefUnwindSafe for OApiExample
impl RefUnwindSafe for OApiExample
impl Send for OApiExample
impl Send for OApiExample
impl Sync for OApiExample
impl Sync for OApiExample
impl Unpin for OApiExample
impl Unpin for OApiExample
impl UnwindSafe for OApiExample
impl UnwindSafe for OApiExample