pub struct RefBuilder { /* private fields */ }Implementations§
Source§impl RefBuilder
impl RefBuilder
Sourcepub fn new() -> RefBuilder
pub fn new() -> RefBuilder
Constructs a new RefBuilder.
Source§impl RefBuilder
impl RefBuilder
Sourcepub fn ref_location(self, ref_location: String) -> Self
pub fn ref_location(self, ref_location: String) -> Self
Add or change reference location of the actual component.
Sourcepub fn ref_location_from_schema_name<S: Into<String>>(
self,
schema_name: S,
) -> Self
pub fn ref_location_from_schema_name<S: Into<String>>( self, schema_name: S, ) -> Self
Add or change reference location of the actual component automatically formatting the $ref
to #/components/schemas/... format.
Sourcepub fn description<S: Into<String>>(self, description: Option<S>) -> Self
pub fn description<S: Into<String>>(self, description: Option<S>) -> Self
Add or change description which by default should override that of the referenced component. Description supports markdown syntax. If referenced object type does not support description this field does not have effect.
Trait Implementations§
Source§impl Default for RefBuilder
impl Default for RefBuilder
Source§impl From<Ref> for RefBuilder
impl From<Ref> for RefBuilder
Source§impl From<RefBuilder> for AdditionalProperties<Schema>
impl From<RefBuilder> for AdditionalProperties<Schema>
Source§fn from(value: RefBuilder) -> Self
fn from(value: RefBuilder) -> Self
Converts to this type from the input type.
Source§impl From<RefBuilder> for ArrayItems
impl From<RefBuilder> for ArrayItems
Source§fn from(value: RefBuilder) -> Self
fn from(value: RefBuilder) -> Self
Converts to this type from the input type.
Source§impl From<RefBuilder> for Ref
impl From<RefBuilder> for Ref
Source§fn from(value: RefBuilder) -> Self
fn from(value: RefBuilder) -> Self
Converts to this type from the input type.
Source§impl From<RefBuilder> for RefOr<Schema>
impl From<RefBuilder> for RefOr<Schema>
Source§fn from(builder: RefBuilder) -> Self
fn from(builder: RefBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RefBuilder
impl RefUnwindSafe for RefBuilder
impl Send for RefBuilder
impl Sync for RefBuilder
impl Unpin for RefBuilder
impl UnwindSafe for RefBuilder
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