pub struct RestDescription {
Show 31 fields pub auth: Option<RestDescriptionAuth>, pub base_path: Option<String>, pub base_url: Option<String>, pub batch_path: Option<String>, pub canonical_name: Option<String>, pub description: Option<String>, pub discovery_version: Option<String>, pub documentation_link: Option<String>, pub endpoints: Option<Vec<RestDescriptionEndpoints>>, pub etag: Option<String>, pub exponential_backoff_default: Option<bool>, pub features: Option<Vec<String>>, pub icons: Option<RestDescriptionIcons>, pub id: Option<String>, pub kind: Option<String>, pub labels: Option<Vec<String>>, pub methods: Option<HashMap<String, RestMethod>>, pub name: Option<String>, pub owner_domain: Option<String>, pub owner_name: Option<String>, pub package_path: Option<String>, pub parameters: Option<HashMap<String, JsonSchema>>, pub protocol: Option<String>, pub resources: Option<HashMap<String, RestResource>>, pub revision: Option<String>, pub root_url: Option<String>, pub schemas: Option<HashMap<String, JsonSchema>>, pub service_path: Option<String>, pub title: Option<String>, pub version: Option<String>, pub version_module: Option<bool>,
}
Expand description

There is no detailed description.

§Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields§

§auth: Option<RestDescriptionAuth>

Authentication information.

§base_path: Option<String>

[DEPRECATED] The base path for REST requests.

§base_url: Option<String>

[DEPRECATED] The base URL for REST requests.

§batch_path: Option<String>

The path for REST batch requests.

§canonical_name: Option<String>

Indicates how the API name should be capitalized and split into various parts. Useful for generating pretty class names.

§description: Option<String>

The description of this API.

§discovery_version: Option<String>

Indicate the version of the Discovery API used to generate this doc.

§documentation_link: Option<String>

A link to human readable documentation for the API.

§endpoints: Option<Vec<RestDescriptionEndpoints>>

A list of location-based endpoint objects for this API. Each object contains the endpoint URL, location, description and deprecation status.

§etag: Option<String>

The ETag for this response.

§exponential_backoff_default: Option<bool>

Enable exponential backoff for suitable methods in the generated clients.

§features: Option<Vec<String>>

A list of supported features for this API.

§icons: Option<RestDescriptionIcons>

Links to 16x16 and 32x32 icons representing the API.

§id: Option<String>

The ID of this API.

§kind: Option<String>

The kind for this response.

§labels: Option<Vec<String>>

Labels for the status of this API, such as labs or deprecated.

§methods: Option<HashMap<String, RestMethod>>

API-level methods for this API.

§name: Option<String>

The name of this API.

§owner_domain: Option<String>

The domain of the owner of this API. Together with the ownerName and a packagePath values, this can be used to generate a library for this API which would have a unique fully qualified name.

§owner_name: Option<String>

The name of the owner of this API. See ownerDomain.

§package_path: Option<String>

The package of the owner of this API. See ownerDomain.

§parameters: Option<HashMap<String, JsonSchema>>

Common parameters that apply across all apis.

§protocol: Option<String>

The protocol described by this document.

§resources: Option<HashMap<String, RestResource>>

The resources in this API.

§revision: Option<String>

The version of this API.

§root_url: Option<String>

The root URL under which all API services live.

§schemas: Option<HashMap<String, JsonSchema>>

The schemas for this API.

§service_path: Option<String>

The base path for all REST requests.

§title: Option<String>

The title of this API.

§version: Option<String>

The version of this API.

§version_module: Option<bool>

no description provided

Trait Implementations§

source§

impl Clone for RestDescription

source§

fn clone(&self) -> RestDescription

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for RestDescription

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for RestDescription

source§

fn default() -> RestDescription

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for RestDescription

source§

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 Serialize for RestDescription

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl ResponseResult for RestDescription

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,