pub struct ParameterBody {
pub name: String,
pub location: String,
pub required: bool,
pub fence_language: String,
pub fence_body: String,
pub protocols: Vec<ProtocolAttachment>,
}Expand description
Parameter entity body (location, requirement, schema excerpt).
Fields§
§name: StringParameter name.
location: StringParameter location (e.g. "query", "path", "header").
required: boolWhether the parameter is required.
fence_language: StringLanguage tag for the fenced code block.
fence_body: StringFenced source excerpt for the parameter schema.
protocols: Vec<ProtocolAttachment>Protocol-specific parameter metadata (for example HTTP header location).
Trait Implementations§
Source§impl Clone for ParameterBody
impl Clone for ParameterBody
Source§fn clone(&self) -> ParameterBody
fn clone(&self) -> ParameterBody
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 ParameterBody
impl Debug for ParameterBody
Source§impl Default for ParameterBody
impl Default for ParameterBody
Source§fn default() -> ParameterBody
fn default() -> ParameterBody
Returns the “default value” for a type. Read more
impl Eq for ParameterBody
Source§impl PartialEq for ParameterBody
impl PartialEq for ParameterBody
Source§fn eq(&self, other: &ParameterBody) -> bool
fn eq(&self, other: &ParameterBody) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ParameterBody
Auto Trait Implementations§
impl Freeze for ParameterBody
impl RefUnwindSafe for ParameterBody
impl Send for ParameterBody
impl Sync for ParameterBody
impl Unpin for ParameterBody
impl UnsafeUnpin for ParameterBody
impl UnwindSafe for ParameterBody
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