pub enum Authentication<'a> {
Authorized {
username: &'a str,
apikey: &'a str,
},
Unauthorized,
}Variants§
Trait Implementations§
Source§impl<'a> Clone for Authentication<'a>
impl<'a> Clone for Authentication<'a>
Source§fn clone(&self) -> Authentication<'a>
fn clone(&self) -> Authentication<'a>
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<'a> Debug for Authentication<'a>
impl<'a> Debug for Authentication<'a>
impl<'a> Copy for Authentication<'a>
Auto Trait Implementations§
impl<'a> Freeze for Authentication<'a>
impl<'a> RefUnwindSafe for Authentication<'a>
impl<'a> Send for Authentication<'a>
impl<'a> Sync for Authentication<'a>
impl<'a> Unpin for Authentication<'a>
impl<'a> UnwindSafe for Authentication<'a>
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