pub enum AuthenticationVersion {
V2,
V3 {
account_id: String,
},
}Expand description
Session authentication protocol used for REST requests.
Variants§
V2
IG’s CST and X-SECURITY-TOKEN session authentication.
V3
OAuth authentication. IG requires the active account to be selected at login.
Trait Implementations§
Source§impl Clone for AuthenticationVersion
impl Clone for AuthenticationVersion
Source§fn clone(&self) -> AuthenticationVersion
fn clone(&self) -> AuthenticationVersion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthenticationVersion
impl Debug for AuthenticationVersion
Source§impl Default for AuthenticationVersion
impl Default for AuthenticationVersion
Source§fn default() -> AuthenticationVersion
fn default() -> AuthenticationVersion
Returns the “default value” for a type. Read more
impl Eq for AuthenticationVersion
Source§impl PartialEq for AuthenticationVersion
impl PartialEq for AuthenticationVersion
impl StructuralPartialEq for AuthenticationVersion
Auto Trait Implementations§
impl Freeze for AuthenticationVersion
impl RefUnwindSafe for AuthenticationVersion
impl Send for AuthenticationVersion
impl Sync for AuthenticationVersion
impl Unpin for AuthenticationVersion
impl UnsafeUnpin for AuthenticationVersion
impl UnwindSafe for AuthenticationVersion
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> 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.