Struct utoipa::openapi::tag::TagBuilder
source · pub struct TagBuilder { /* private fields */ }
Implementations§
source§impl TagBuilder
impl TagBuilder
sourcepub fn new() -> TagBuilder
pub fn new() -> TagBuilder
Constructs a new TagBuilder
.
source§impl TagBuilder
impl TagBuilder
sourcepub fn description<S: Into<String>>(self, description: Option<S>) -> Self
pub fn description<S: Into<String>>(self, description: Option<S>) -> Self
Add additional description for the tag.
sourcepub fn external_docs(self, external_docs: Option<ExternalDocs>) -> Self
pub fn external_docs(self, external_docs: Option<ExternalDocs>) -> Self
Add additional external documentation for the tag.
Trait Implementations§
source§impl Default for TagBuilder
impl Default for TagBuilder
source§impl From<Tag> for TagBuilder
impl From<Tag> for TagBuilder
source§impl From<TagBuilder> for Tag
impl From<TagBuilder> for Tag
source§fn from(value: TagBuilder) -> Self
fn from(value: TagBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for TagBuilder
impl Send for TagBuilder
impl Sync for TagBuilder
impl Unpin for TagBuilder
impl UnwindSafe for TagBuilder
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