pub struct BadgeInfo {
pub key: &'static str,
pub official: bool,
pub required: &'static [&'static str],
pub optional: &'static [&'static str],
}Expand description
A badge key cargo-readme understands, plus which attributes it reads.
This is the single source of truth behind cargo readme --list-badges. The
keys here must stay in sync with the match arms in [super::manifest::process_badges];
a unit test in that module enforces it.
Fields§
§key: &'static strThe [badges] table key, e.g. "coveralls".
official: boolWhether crates.io documents this badge in the manifest reference.
required: &'static [&'static str]Attributes that must be present, or badge rendering fails.
optional: &'static [&'static str]Attributes that are read when present, otherwise defaulted.
Auto Trait Implementations§
impl Freeze for BadgeInfo
impl RefUnwindSafe for BadgeInfo
impl Send for BadgeInfo
impl Sync for BadgeInfo
impl Unpin for BadgeInfo
impl UnsafeUnpin for BadgeInfo
impl UnwindSafe for BadgeInfo
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