pub struct ServerUrlEnum {
pub name: RustIdent,
pub doc: Option<String>,
pub variants: Vec<ServerUrlEnumVariant>,
pub default: Option<RustIdent>,
}Expand description
An enum type generated for an enum-constrained server variable.
Fields§
§name: RustIdentPascalCase enum type name (<Server><Variable>).
doc: Option<String>Doc comment naming the server variable this enum constrains.
variants: Vec<ServerUrlEnumVariant>The permitted values, in declaration order.
default: Option<RustIdent>The variant identifier used for the Default impl (the OpenAPI
default), when the variable declares one.
Trait Implementations§
Source§impl Clone for ServerUrlEnum
impl Clone for ServerUrlEnum
Source§fn clone(&self) -> ServerUrlEnum
fn clone(&self) -> ServerUrlEnum
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 ServerUrlEnum
impl Debug for ServerUrlEnum
Source§impl PartialEq for ServerUrlEnum
impl PartialEq for ServerUrlEnum
impl StructuralPartialEq for ServerUrlEnum
Auto Trait Implementations§
impl Freeze for ServerUrlEnum
impl RefUnwindSafe for ServerUrlEnum
impl Send for ServerUrlEnum
impl Sync for ServerUrlEnum
impl Unpin for ServerUrlEnum
impl UnsafeUnpin for ServerUrlEnum
impl UnwindSafe for ServerUrlEnum
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