pub struct OperationDescription {
pub operation: Operation,
pub method: HttpMethod,
pub route: Text<1, 256>,
pub group: RouteGroup,
pub request_schema: Maybe<Text<1, 128>>,
pub response_schemas: List<Text<1, 128>, 0, 4>,
pub streaming: bool,
pub response_format: ResponseFormat,
}Fields§
§operation: Operation§method: HttpMethod§route: Text<1, 256>§group: RouteGroup§request_schema: Maybe<Text<1, 128>>§response_schemas: List<Text<1, 128>, 0, 4>§streaming: bool§response_format: ResponseFormatTrait Implementations§
Source§impl Clone for OperationDescription
impl Clone for OperationDescription
Source§impl Debug for OperationDescription
impl Debug for OperationDescription
Source§impl<'de> Deserialize<'de> for OperationDescription
impl<'de> Deserialize<'de> for OperationDescription
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
Source§impl JsonSchema for OperationDescription
impl JsonSchema for OperationDescription
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for OperationDescription
impl PartialEq for OperationDescription
Source§impl Serialize for OperationDescription
impl Serialize for OperationDescription
impl StructuralPartialEq for OperationDescription
Auto Trait Implementations§
impl Freeze for OperationDescription
impl RefUnwindSafe for OperationDescription
impl Send for OperationDescription
impl Sync for OperationDescription
impl Unpin for OperationDescription
impl UnsafeUnpin for OperationDescription
impl UnwindSafe for OperationDescription
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