pub struct Method {
pub id: String,
pub path: String,
pub http_method: String,
pub description: Option<String>,
pub parameters: HashMap<String, Parameter>,
pub request: Option<MethodRequest>,
pub response: Option<MethodResponse>,
pub scopes: Vec<String>,
}Expand description
Method (API operation)
Fields§
§id: StringMethod ID (e.g., “storage.buckets.insert”)
path: StringHTTP path
http_method: StringHTTP method (GET, POST, PUT, DELETE, PATCH)
description: Option<String>Description
parameters: HashMap<String, Parameter>Parameters
request: Option<MethodRequest>Request body schema
response: Option<MethodResponse>Response schema
scopes: Vec<String>Scopes required
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Method
impl<'de> Deserialize<'de> for Method
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 Method
impl RefUnwindSafe for Method
impl Send for Method
impl Sync for Method
impl Unpin for Method
impl UnsafeUnpin for Method
impl UnwindSafe for Method
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