pub enum LinkOutcome {
Linked(Box<PlatformAccount>),
Cancelled,
Failed(String),
}Expand description
How a link ended.
Variants§
Linked(Box<PlatformAccount>)
The account it linked.
Cancelled
The person turned the provider down, or closed its page before anything came back.
Failed(String)
Nothing was linked, and why, in words for the person.
Implementations§
Source§impl LinkOutcome
impl LinkOutcome
pub fn from_json( json: &Value, authorization: &Credentials, ) -> Result<LinkOutcome>
Trait Implementations§
Source§impl Clone for LinkOutcome
impl Clone for LinkOutcome
Auto Trait Implementations§
impl Forget for LinkOutcome
impl Freeze for LinkOutcomewhere
*const PlatformAccount is !null: Freeze,
PhantomData<PlatformAccount>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
impl Move for LinkOutcome
impl RefUnwindSafe for LinkOutcome
impl Send for LinkOutcome
impl Sync for LinkOutcome
impl Unpin for LinkOutcome
impl UnsafeUnpin for LinkOutcomewhere
*const PlatformAccount is !null: UnsafeUnpin,
PhantomData<PlatformAccount>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for LinkOutcome
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