pub enum Authorization {
Server {
authorization: CredentialsOrApiKey,
server: String,
group: Option<String>,
},
AccessCode {
authorization: CredentialsOrApiKey,
access_code: String,
},
}Variants§
Trait Implementations§
Source§impl Clone for Authorization
impl Clone for Authorization
Auto Trait Implementations§
impl Forget for Authorization
impl Freeze for Authorizationwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<Platform>: Freeze,
PhantomData<ApiKey>: Freeze,
impl Move for Authorization
impl RefUnwindSafe for Authorization
impl Send for Authorizationwhere
RawVecInner: Send,
impl Sync for Authorizationwhere
RawVecInner: Sync,
impl Unpin for Authorization
impl UnsafeUnpin for Authorizationwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Platform>: UnsafeUnpin,
PhantomData<ApiKey>: UnsafeUnpin,
impl UnwindSafe for Authorizationwhere
RawVecInner: 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