pub struct RestDescription {Show 13 fields
pub name: String,
pub version: String,
pub title: Option<String>,
pub description: Option<String>,
pub canonical_name: Option<String>,
pub revision: Option<String>,
pub root_url: String,
pub service_path: String,
pub base_url: Option<String>,
pub schemas: HashMap<String, JsonSchema>,
pub resources: HashMap<String, RestResource>,
pub parameters: HashMap<String, MethodParameter>,
pub auth: Option<AuthDescription>,
}Expand description
Top-level Discovery REST description document.
Fields§
§name: String§version: String§title: Option<String>§description: Option<String>§canonical_name: Option<String>Human-readable canonical API name (when present).
revision: Option<String>Document revision string (often YYYYMMDD).
root_url: String§service_path: String§base_url: Option<String>§schemas: HashMap<String, JsonSchema>§resources: HashMap<String, RestResource>§parameters: HashMap<String, MethodParameter>§auth: Option<AuthDescription>Trait Implementations§
Source§impl Clone for RestDescription
impl Clone for RestDescription
Source§fn clone(&self) -> RestDescription
fn clone(&self) -> RestDescription
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 RestDescription
impl Debug for RestDescription
Source§impl Default for RestDescription
impl Default for RestDescription
Source§fn default() -> RestDescription
fn default() -> RestDescription
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RestDescription
impl<'de> Deserialize<'de> for RestDescription
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
Auto Trait Implementations§
impl Freeze for RestDescription
impl RefUnwindSafe for RestDescription
impl Send for RestDescription
impl Sync for RestDescription
impl Unpin for RestDescription
impl UnsafeUnpin for RestDescription
impl UnwindSafe for RestDescription
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