pub struct OperationBody {
pub signature: String,
pub fence_language: String,
pub fence_body: String,
pub parameters: Vec<ParameterRef>,
pub responses: Vec<ResponseRef>,
pub request_body: Option<OperationRequestBodyRef>,
pub protocols: Vec<ProtocolAttachment>,
}Expand description
Operation entity body (RPC signature, parameters, responses).
Fields§
§signature: StringHuman-readable operation signature line.
fence_language: StringLanguage tag for the fenced code block (e.g. "protobuf", "yaml").
fence_body: StringFenced source excerpt for the operation definition.
parameters: Vec<ParameterRef>Parameter references attached to the operation.
responses: Vec<ResponseRef>Response references attached to the operation.
request_body: Option<OperationRequestBodyRef>Request body attachment when the operation defines one.
protocols: Vec<ProtocolAttachment>Protocol-specific invocation metadata (for example HTTP method/path).
Trait Implementations§
Source§impl Clone for OperationBody
impl Clone for OperationBody
Source§fn clone(&self) -> OperationBody
fn clone(&self) -> OperationBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OperationBody
impl Debug for OperationBody
Source§impl Default for OperationBody
impl Default for OperationBody
Source§fn default() -> OperationBody
fn default() -> OperationBody
Returns the “default value” for a type. Read more
impl Eq for OperationBody
Source§impl PartialEq for OperationBody
impl PartialEq for OperationBody
Source§fn eq(&self, other: &OperationBody) -> bool
fn eq(&self, other: &OperationBody) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OperationBody
Auto Trait Implementations§
impl Freeze for OperationBody
impl RefUnwindSafe for OperationBody
impl Send for OperationBody
impl Sync for OperationBody
impl Unpin for OperationBody
impl UnsafeUnpin for OperationBody
impl UnwindSafe for OperationBody
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