pub enum PlatformVerification {
GitHub {
access_token: String,
},
GitLab {
access_token: String,
},
Skip,
}Expand description
How to verify a platform identity.
The CLI obtains tokens interactively (OAuth device flow, browser open). The SDK accepts the resulting token — it never opens a browser.
Usage:
ⓘ
let platform = PlatformVerification::GitHub {
access_token: "ghp_abc123".into(),
};Variants§
GitHub
Verify via GitHub using a personal access token.
GitLab
Verify via GitLab using a personal access token.
Skip
Skip platform verification.
Trait Implementations§
Source§impl Clone for PlatformVerification
impl Clone for PlatformVerification
Source§fn clone(&self) -> PlatformVerification
fn clone(&self) -> PlatformVerification
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 moreAuto Trait Implementations§
impl Freeze for PlatformVerification
impl RefUnwindSafe for PlatformVerification
impl Send for PlatformVerification
impl Sync for PlatformVerification
impl Unpin for PlatformVerification
impl UnsafeUnpin for PlatformVerification
impl UnwindSafe for PlatformVerification
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