pub struct ApiDocument {
pub ident: String,
pub name: String,
pub note: Option<String>,
pub version: Option<String>,
pub modules: HashMap<String, ApiModule>,
pub resources: Vec<ApiResource>,
pub operations: Vec<ApiOperation>,
pub models: HashMap<String, ApiModel>,
pub errors: Vec<ApiErrorItem>,
}
Fields§
§ident: String
§name: String
§note: Option<String>
§version: Option<String>
§modules: HashMap<String, ApiModule>
§resources: Vec<ApiResource>
§operations: Vec<ApiOperation>
§models: HashMap<String, ApiModel>
§errors: Vec<ApiErrorItem>
Trait Implementations§
Source§impl ApiErrors for ApiDocument
impl ApiErrors for ApiDocument
fn api_errors() -> Vec<ApiErrorItem>
Source§impl Clone for ApiDocument
impl Clone for ApiDocument
Source§fn clone(&self) -> ApiDocument
fn clone(&self) -> ApiDocument
Returns a copy 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 ApiDocument
impl Debug for ApiDocument
Source§impl<'de> Deserialize<'de> for ApiDocument
impl<'de> Deserialize<'de> for ApiDocument
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 PartialEq for ApiDocument
impl PartialEq for ApiDocument
Source§impl Serialize for ApiDocument
impl Serialize for ApiDocument
impl StructuralPartialEq for ApiDocument
Auto Trait Implementations§
impl Freeze for ApiDocument
impl RefUnwindSafe for ApiDocument
impl Send for ApiDocument
impl Sync for ApiDocument
impl Unpin for ApiDocument
impl UnwindSafe for ApiDocument
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