pub struct Api {
pub group: Option<Group>,
pub operation: String,
pub request: Option<Request>,
pub response: Option<Response>,
pub service: Option<Service>,
pub version: Option<String>,
}
Expand description
Api
JSON schema
{
"type": "object",
"required": [
"operation"
],
"properties": {
"group": {
"$ref": "#/$defs/group"
},
"operation": {
"type": "string"
},
"request": {
"$ref": "#/$defs/request"
},
"response": {
"$ref": "#/$defs/response"
},
"service": {
"$ref": "#/$defs/service"
},
"version": {
"type": "string"
}
}
}
Fields§
§group: Option<Group>
§operation: String
§request: Option<Request>
§response: Option<Response>
§service: Option<Service>
§version: Option<String>
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Api
impl<'de> Deserialize<'de> for Api
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 Api
impl RefUnwindSafe for Api
impl Send for Api
impl Sync for Api
impl Unpin for Api
impl UnwindSafe for Api
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