Struct poem_openapi::ServerObject
source · pub struct ServerObject { /* private fields */ }
Expand description
An object representing a Server.
Implementations§
source§impl 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§
source§impl Clone for ServerObject
impl Clone for ServerObject
source§fn clone(&self) -> ServerObject
fn clone(&self) -> ServerObject
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more