pub struct BadgeContribution {
pub name: String,
pub color: String,
}Expand description
One badge entry the layer attaches to every operation it covers.
Surfaces in doc UIs that render the x-badges vendor extension
(Scalar): a colored chip with the supplied name.
Fields§
§name: StringBadge name rendered in the UI. Serialized as the name key in
the emitted x-badges entry to match Scalar’s schema.
color: StringBadge color. CSS color values are accepted by Scalar (keyword, hex, rgb, hsl).
Implementations§
Trait Implementations§
Source§impl Clone for BadgeContribution
impl Clone for BadgeContribution
Source§fn clone(&self) -> BadgeContribution
fn clone(&self) -> BadgeContribution
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for BadgeContribution
impl RefUnwindSafe for BadgeContribution
impl Send for BadgeContribution
impl Sync for BadgeContribution
impl Unpin for BadgeContribution
impl UnsafeUnpin for BadgeContribution
impl UnwindSafe for BadgeContribution
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