pub struct ContactBuilder { /* private fields */ }
Expand description
Builder for Contact
with chainable configuration methods to create a new Contact
.
See the InfoBuilder
for combined usage example.
Implementations§
Source§impl ContactBuilder
impl ContactBuilder
Sourcepub fn new() -> ContactBuilder
pub fn new() -> ContactBuilder
Constructs a new ContactBuilder
.
Source§impl ContactBuilder
impl ContactBuilder
Sourcepub fn name<S: Into<String>>(self, name: Option<S>) -> Self
pub fn name<S: Into<String>>(self, name: Option<S>) -> Self
Add name contact person or organization of the API.
Sourcepub fn url<S: Into<String>>(self, url: Option<S>) -> Self
pub fn url<S: Into<String>>(self, url: Option<S>) -> Self
Add url pointing to the contact information of the API.
Sourcepub fn email<S: Into<String>>(self, email: Option<S>) -> Self
pub fn email<S: Into<String>>(self, email: Option<S>) -> Self
Add email of the contact person or organization of the API.
Sourcepub fn extensions(self, extensions: Option<Extensions>) -> Self
pub fn extensions(self, extensions: Option<Extensions>) -> Self
Add openapi extensions (x-something) of the API.
Trait Implementations§
Source§impl Default for ContactBuilder
impl Default for ContactBuilder
Source§impl From<Contact> for ContactBuilder
impl From<Contact> for ContactBuilder
Source§impl From<ContactBuilder> for Contact
impl From<ContactBuilder> for Contact
Source§fn from(value: ContactBuilder) -> Self
fn from(value: ContactBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ContactBuilder
impl RefUnwindSafe for ContactBuilder
impl Send for ContactBuilder
impl Sync for ContactBuilder
impl Unpin for ContactBuilder
impl UnwindSafe for ContactBuilder
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