Struct poem_openapi::ExternalDocumentObject
source · pub struct ExternalDocumentObject { /* private fields */ }
Expand description
An object representing a external document.
Implementations§
source§impl ExternalDocumentObject
impl ExternalDocumentObject
sourcepub fn new(url: impl Into<String>) -> ExternalDocumentObject
pub fn new(url: impl Into<String>) -> ExternalDocumentObject
Create a external document object by url.
sourcepub fn description(self, description: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
Sets a description of the target documentation.
Trait Implementations§
source§impl Clone for ExternalDocumentObject
impl Clone for ExternalDocumentObject
source§fn clone(&self) -> ExternalDocumentObject
fn clone(&self) -> ExternalDocumentObject
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