#[non_exhaustive]pub enum LinkMethod {
None,
DeviceFlow,
AuthorizationCodePkce,
}Expand description
How a member links their forge account (§4.4).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
No automated link; the core records a binding some other way.
DeviceFlow
OAuth device flow — works from a terminal (GitHub).
AuthorizationCodePkce
OAuth2 authorisation code with PKCE, through a browser (Forgejo).
Trait Implementations§
Source§impl Clone for LinkMethod
impl Clone for LinkMethod
impl Copy for LinkMethod
Source§impl Debug for LinkMethod
impl Debug for LinkMethod
Source§impl Default for LinkMethod
impl Default for LinkMethod
Source§impl<'de> Deserialize<'de> for LinkMethod
impl<'de> Deserialize<'de> for LinkMethod
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LinkMethod
Source§impl PartialEq for LinkMethod
impl PartialEq for LinkMethod
Source§impl Serialize for LinkMethod
impl Serialize for LinkMethod
impl StructuralPartialEq for LinkMethod
Auto Trait Implementations§
impl Freeze for LinkMethod
impl RefUnwindSafe for LinkMethod
impl Send for LinkMethod
impl Sync for LinkMethod
impl Unpin for LinkMethod
impl UnsafeUnpin for LinkMethod
impl UnwindSafe for LinkMethod
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