pub struct RestMethod {Show 13 fields
pub id: Option<String>,
pub description: Option<String>,
pub http_method: String,
pub path: String,
pub parameters: HashMap<String, MethodParameter>,
pub parameter_order: Vec<String>,
pub request: Option<SchemaRef>,
pub response: Option<SchemaRef>,
pub scopes: Vec<String>,
pub flat_path: Option<String>,
pub supports_media_download: bool,
pub supports_media_upload: bool,
pub media_upload: Option<MediaUpload>,
}Expand description
A single REST method on a resource.
Fields§
§id: Option<String>§description: Option<String>§http_method: String§path: String§parameters: HashMap<String, MethodParameter>§parameter_order: Vec<String>§request: Option<SchemaRef>§response: Option<SchemaRef>§scopes: Vec<String>§flat_path: Option<String>§supports_media_download: bool§supports_media_upload: bool§media_upload: Option<MediaUpload>Trait Implementations§
Source§impl Clone for RestMethod
impl Clone for RestMethod
Source§fn clone(&self) -> RestMethod
fn clone(&self) -> RestMethod
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 RestMethod
impl Debug for RestMethod
Source§impl Default for RestMethod
impl Default for RestMethod
Source§fn default() -> RestMethod
fn default() -> RestMethod
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RestMethod
impl<'de> Deserialize<'de> for RestMethod
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 RestMethod
impl RefUnwindSafe for RestMethod
impl Send for RestMethod
impl Sync for RestMethod
impl Unpin for RestMethod
impl UnsafeUnpin for RestMethod
impl UnwindSafe for RestMethod
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