Struct cargo_toml::Badges
source · pub struct Badges {
pub appveyor: Option<Badge>,
pub circle_ci: Option<Badge>,
pub gitlab: Option<Badge>,
pub travis_ci: Option<Badge>,
pub codecov: Option<Badge>,
pub coveralls: Option<Badge>,
pub is_it_maintained_issue_resolution: Option<Badge>,
pub is_it_maintained_open_issues: Option<Badge>,
pub maintenance: Maintenance,
}
Expand description
[badges]
section of Cargo.toml
, deprecated by crates-io except maintenance
.
Fields§
§appveyor: Option<Badge>
Appveyor: repository
is required. branch
is optional; default is master
service
is optional; valid values are github
(default), bitbucket
, and
gitlab
; id
is optional; you can specify the appveyor project id if you
want to use that instead. project_name
is optional; use when the repository
name differs from the appveyor project name.
circle_ci: Option<Badge>
Circle CI: repository
is required. branch
is optional; default is master
gitlab: Option<Badge>
GitLab: repository
is required. branch
is optional; default is master
travis_ci: Option<Badge>
Travis CI: repository
in format "<user>/<project>"
is required.
branch
is optional; default is master
codecov: Option<Badge>
Codecov: repository
is required. branch
is optional; default is master
service
is optional; valid values are github
(default), bitbucket
, and
gitlab
.
coveralls: Option<Badge>
Coveralls: repository
is required. branch
is optional; default is master
service
is optional; valid values are github
(default) and bitbucket
.
is_it_maintained_issue_resolution: Option<Badge>
Is it maintained resolution time: repository
is required.
is_it_maintained_open_issues: Option<Badge>
Is it maintained percentage of open issues: repository
is required.
maintenance: Maintenance
Maintenance: status
is required. Available options are actively-developed
,
passively-maintained
, as-is
, experimental
, looking-for-maintainer
,
deprecated
, and the default none
, which displays no badge on crates.io.
[badges]
maintenance.status = "as-is"
Trait Implementations§
source§impl<'de> Deserialize<'de> for Badges
impl<'de> Deserialize<'de> for Badges
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Badges
impl StructuralPartialEq for Badges
Auto Trait Implementations§
impl Freeze for Badges
impl RefUnwindSafe for Badges
impl Send for Badges
impl Sync for Badges
impl Unpin for Badges
impl UnwindSafe for Badges
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.