pub struct ParameterRef {
pub name: String,
pub location: String,
pub required: bool,
pub schema_ref: Reference,
pub type_label: String,
pub description: String,
pub protocols: Vec<ProtocolAttachment>,
}Expand description
Parameter attachment on an OperationBody, referencing a schema entity.
Fields§
§name: StringParameter name.
location: StringParameter location (e.g. "query", "path").
required: boolWhether the parameter is required.
schema_ref: ReferenceStructural reference to the parameter schema entity.
type_label: StringHuman-readable schema type label for rendering (e.g. "string", "coordinate").
description: StringOpenAPI parameter description prose, when present.
protocols: Vec<ProtocolAttachment>Protocol-specific parameter metadata.
Trait Implementations§
Source§impl Clone for ParameterRef
impl Clone for ParameterRef
Source§fn clone(&self) -> ParameterRef
fn clone(&self) -> ParameterRef
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 ParameterRef
impl Debug for ParameterRef
impl Eq for ParameterRef
Source§impl PartialEq for ParameterRef
impl PartialEq for ParameterRef
Source§fn eq(&self, other: &ParameterRef) -> bool
fn eq(&self, other: &ParameterRef) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ParameterRef
Auto Trait Implementations§
impl Freeze for ParameterRef
impl RefUnwindSafe for ParameterRef
impl Send for ParameterRef
impl Sync for ParameterRef
impl Unpin for ParameterRef
impl UnsafeUnpin for ParameterRef
impl UnwindSafe for ParameterRef
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