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) -> RefBuilder
pub fn ref_location(self, ref_location: String) -> RefBuilder
Add or change reference location of the actual component.
Sourcepub fn ref_location_from_schema_name<S>(self, schema_name: S) -> RefBuilder
pub fn ref_location_from_schema_name<S>(self, schema_name: S) -> RefBuilder
Add or change reference location of the actual component automatically formatting the $ref
to #/components/schemas/... format.
Sourcepub fn description<S>(self, description: Option<S>) -> RefBuilder
pub fn description<S>(self, description: Option<S>) -> RefBuilder
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.
Sourcepub fn summary<S>(self, summary: S) -> RefBuilder
pub fn summary<S>(self, summary: S) -> RefBuilder
Add or change short summary which by default should override that of the referenced component. If referenced component does not support summary field this does not have effect.
Trait Implementations§
Source§impl Default for RefBuilder
impl Default for RefBuilder
Source§fn default() -> RefBuilder
fn default() -> RefBuilder
Returns the “default value” for a type. Read more
Source§impl From<Ref> for RefBuilder
impl From<Ref> for RefBuilder
Source§fn from(value: Ref) -> RefBuilder
fn from(value: Ref) -> RefBuilder
Converts to this type from the input type.
Source§impl From<RefBuilder> for AdditionalProperties<Schema>
impl From<RefBuilder> for AdditionalProperties<Schema>
Source§fn from(value: RefBuilder) -> AdditionalProperties<Schema>
fn from(value: RefBuilder) -> AdditionalProperties<Schema>
Converts to this type from the input type.
Source§impl From<RefBuilder> for ArrayItems
impl From<RefBuilder> for ArrayItems
Source§fn from(value: RefBuilder) -> ArrayItems
fn from(value: RefBuilder) -> ArrayItems
Converts to this type from the input type.
Source§impl From<RefBuilder> for Ref
impl From<RefBuilder> for Ref
Source§fn from(value: RefBuilder) -> Ref
fn from(value: RefBuilder) -> Ref
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