pub struct ServerUrls {
pub enums: Vec<ServerUrlEnum>,
pub servers: Vec<ServerUrl>,
}Expand description
The lowered servers: block: constants and builder functions for each
declared server URL, plus the enum types their variables reference.
Emitted when generate.server-urls is set. A server whose URL has no
{placeholder} becomes a const. one with placeholders becomes a builder
function that substitutes each variable and validates the result.
Fields§
§enums: Vec<ServerUrlEnum>Enum types for the enum-constrained server variables, emitted before the builder functions that reference them.
servers: Vec<ServerUrl>One entry per declared server, in document order.
Trait Implementations§
Source§impl Clone for ServerUrls
impl Clone for ServerUrls
Source§fn clone(&self) -> ServerUrls
fn clone(&self) -> ServerUrls
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 ServerUrls
impl Debug for ServerUrls
Source§impl PartialEq for ServerUrls
impl PartialEq for ServerUrls
impl StructuralPartialEq for ServerUrls
Auto Trait Implementations§
impl Freeze for ServerUrls
impl RefUnwindSafe for ServerUrls
impl Send for ServerUrls
impl Sync for ServerUrls
impl Unpin for ServerUrls
impl UnsafeUnpin for ServerUrls
impl UnwindSafe for ServerUrls
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