pub struct Parameter {
pub name: String,
pub value: String,
pub description: Option<String>,
pub type: ParameterType,
pub required: bool,
pub location: ParameterLocation,
}
Fields§
§name: String
§value: String
§description: Option<String>
§type: ParameterType
§required: bool
§location: ParameterLocation
Implementations§
Source§impl Parameter
impl Parameter
pub fn from_schema(name: &str, schema: &OpenApiParameter<'_>) -> Option<Self>
pub fn codegen(&self, resolved: &ResolvedSchema) -> Option<TokenStream>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Parameter
impl RefUnwindSafe for Parameter
impl Send for Parameter
impl Sync for Parameter
impl Unpin for Parameter
impl UnwindSafe for Parameter
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