pub enum Auth<D: ToString> {
Token(D),
Basic(D, D),
None,
}
Expand description
Represents the authentication method to use with the Gitea API.
Variants§
Auto Trait Implementations§
impl<D> Freeze for Auth<D>where
D: Freeze,
impl<D> RefUnwindSafe for Auth<D>where
D: RefUnwindSafe,
impl<D> Send for Auth<D>where
D: Send,
impl<D> Sync for Auth<D>where
D: Sync,
impl<D> Unpin for Auth<D>where
D: Unpin,
impl<D> UnwindSafe for Auth<D>where
D: 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