Enum cargo_registry::badge::Badge
[−]
[src]
pub enum Badge { TravisCi { repository: String, branch: Option<String>, }, Appveyor { repository: String, branch: Option<String>, service: Option<String>, }, GitLab { repository: String, branch: Option<String>, }, }
Variants
TravisCi
Fields of TravisCi
repository: String | |
branch: Option<String> |
Appveyor
Fields of Appveyor
repository: String | |
branch: Option<String> | |
service: Option<String> |
GitLab
Fields of GitLab
repository: String | |
branch: Option<String> |
Methods
impl Badge
[src]
fn encodable(self) -> EncodableBadge
fn badge_type(&self) -> &'static str
fn update_crate<'a>(
conn: &PgConnection,
krate: &Crate,
badges: Option<&'a HashMap<String, HashMap<String, String>>>
) -> CargoResult<Vec<&'a str>>
conn: &PgConnection,
krate: &Crate,
badges: Option<&'a HashMap<String, HashMap<String, String>>>
) -> CargoResult<Vec<&'a str>>
fn update_crate_old(
conn: &GenericConnection,
krate: &Crate,
badges: HashMap<String, HashMap<String, String>>
) -> CargoResult<Vec<String>>
conn: &GenericConnection,
krate: &Crate,
badges: HashMap<String, HashMap<String, String>>
) -> CargoResult<Vec<String>>
Trait Implementations
impl Debug for Badge
[src]
impl PartialEq for Badge
[src]
fn eq(&self, __arg_0: &Badge) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Badge) -> bool
This method tests for !=
.
impl Clone for Badge
[src]
fn clone(&self) -> Badge
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more