Struct poem_openapi::ServerObject
source · [−]pub struct ServerObject { /* private fields */ }
Expand description
An object representing a Server.
Implementations
sourceimpl ServerObject
impl ServerObject
sourcepub fn new(url: impl Into<String>) -> ServerObject
pub fn new(url: impl Into<String>) -> ServerObject
Create a server object by url.
sourcepub fn description(self, description: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
Sets an string describing the host designated by the URL.
Trait Implementations
sourceimpl Clone for ServerObject
impl Clone for ServerObject
sourcefn clone(&self) -> ServerObject
fn clone(&self) -> ServerObject
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ServerObject
impl Debug for ServerObject
Auto Trait Implementations
impl RefUnwindSafe for ServerObject
impl Send for ServerObject
impl Sync for ServerObject
impl Unpin for ServerObject
impl UnwindSafe for ServerObject
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more