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 PartialOrd for Identity
impl PartialOrd for Identity
impl Eq for Identity
impl StructuralPartialEq for Identity
Auto Trait Implementations§
impl Freeze for Identity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
Compare self to
key
and return true
if they are equal.