pub enum GitlabAuth<Token = CompactString> {
PrivateToken(Token),
JobToken(Token),
}Variants§
Implementations§
Source§impl<Token: AsRef<str>> GitlabAuth<Token>
impl<Token: AsRef<str>> GitlabAuth<Token>
pub fn as_view(&self) -> GitlabAuthView<'_>
pub fn http_header(&self) -> (&'static str, &str)
Trait Implementations§
Source§impl<Token: Clone> Clone for GitlabAuth<Token>
impl<Token: Clone> Clone for GitlabAuth<Token>
Source§fn clone(&self) -> GitlabAuth<Token>
fn clone(&self) -> GitlabAuth<Token>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Token: Debug> Debug for GitlabAuth<Token>
impl<Token: Debug> Debug for GitlabAuth<Token>
Source§impl<Token: Hash> Hash for GitlabAuth<Token>
impl<Token: Hash> Hash for GitlabAuth<Token>
Source§impl<Token: Ord> Ord for GitlabAuth<Token>
impl<Token: Ord> Ord for GitlabAuth<Token>
Source§fn cmp(&self, other: &GitlabAuth<Token>) -> Ordering
fn cmp(&self, other: &GitlabAuth<Token>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<Token: PartialEq> PartialEq for GitlabAuth<Token>
impl<Token: PartialEq> PartialEq for GitlabAuth<Token>
Source§impl<Token: PartialOrd> PartialOrd for GitlabAuth<Token>
impl<Token: PartialOrd> PartialOrd for GitlabAuth<Token>
impl<Token: Copy> Copy for GitlabAuth<Token>
impl<Token: Eq> Eq for GitlabAuth<Token>
impl<Token> StructuralPartialEq for GitlabAuth<Token>
Auto Trait Implementations§
impl<Token> Freeze for GitlabAuth<Token>where
Token: Freeze,
impl<Token> RefUnwindSafe for GitlabAuth<Token>where
Token: RefUnwindSafe,
impl<Token> Send for GitlabAuth<Token>where
Token: Send,
impl<Token> Sync for GitlabAuth<Token>where
Token: Sync,
impl<Token> Unpin for GitlabAuth<Token>where
Token: Unpin,
impl<Token> UnwindSafe for GitlabAuth<Token>where
Token: UnwindSafe,
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