pub struct CookieParam {
pub name: RustIdent,
pub cookie_name: String,
pub ty: RustType,
pub required: bool,
pub doc: Option<String>,
}Expand description
A single cookie parameter within a Cookies struct.
Fields§
§name: RustIdentRust field identifier (snake_case).
The exact OpenAPI cookie name, used for the CookieJar lookup.
ty: RustTypeThe parsed scalar type. Like HeaderParam, this is the bare element
type even when optional. The emitter adds the Option<..> wrapper.
required: boolWhether the cookie is required. A missing required cookie is a 400.
doc: Option<String>Doc comment derived from the parameter description.
Trait Implementations§
Source§impl Clone for CookieParam
impl Clone for CookieParam
Source§fn clone(&self) -> CookieParam
fn clone(&self) -> CookieParam
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 CookieParam
impl Debug for CookieParam
Source§impl PartialEq for CookieParam
impl PartialEq for CookieParam
impl StructuralPartialEq for CookieParam
Auto Trait Implementations§
impl Freeze for CookieParam
impl RefUnwindSafe for CookieParam
impl Send for CookieParam
impl Sync for CookieParam
impl Unpin for CookieParam
impl UnsafeUnpin for CookieParam
impl UnwindSafe for CookieParam
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