#[non_exhaustive]pub enum ServerUrl {
Const(ServerUrlConst),
Builder(ServerUrlBuilder),
}Expand description
A single lowered server URL: either a constant or a builder function.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Const(ServerUrlConst)
A server URL with no variables: pub const <NAME>: &str = "<url>";.
Builder(ServerUrlBuilder)
A server URL with {placeholder}s: a builder function substituting them.
Trait Implementations§
impl StructuralPartialEq for ServerUrl
Auto Trait Implementations§
impl Freeze for ServerUrl
impl RefUnwindSafe for ServerUrl
impl Send for ServerUrl
impl Sync for ServerUrl
impl Unpin for ServerUrl
impl UnsafeUnpin for ServerUrl
impl UnwindSafe for ServerUrl
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