Enum coveralls_api::Identity
source · pub enum Identity {
RepoToken(String),
ServiceToken(String, Service),
}
Expand description
Repo tokens are alternatives to Services and involve a secret token on coveralls
Variants§
Implementations§
source§impl Identity
impl Identity
sourcepub fn from_token() -> Option<Self>
pub fn from_token() -> Option<Self>
Creates a report identity from a coveralls repo token if one is available Only checks via environment variables - this doesn’t take into account the presence of a .coveralls.yml file
sourcepub fn from_env() -> Option<Self>
pub fn from_env() -> Option<Self>
Creates a report identity based on the CI service auto-detect functionality
sourcepub fn best_match() -> Option<Self>
pub fn best_match() -> Option<Self>
Prefers a coveralls repo token otherwise falls back on CI environment variables
pub fn best_match_with_token(token: String) -> Self
Trait Implementations§
source§impl Ord for Identity
impl Ord for Identity
source§impl PartialEq for Identity
impl PartialEq for Identity
source§impl PartialOrd for Identity
impl PartialOrd for Identity
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Identity
impl StructuralEq for Identity
impl StructuralPartialEq for Identity
Auto Trait Implementations§
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnwindSafe for Identity
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.