pub enum PlatformAccount {
Google(Google),
Slack(Slack),
Discord(Discord),
Twilio(Twilio),
Microsoft(Microsoft),
WhatsApp(WhatsApp),
GitHub(GitHub),
}Expand description
The Account subclass instances Account.fromJSON makes in the TypeScript SDK.
Variants§
Google(Google)
Slack(Slack)
Discord(Discord)
Twilio(Twilio)
Microsoft(Microsoft)
WhatsApp(WhatsApp)
GitHub(GitHub)
Implementations§
Source§impl PlatformAccount
impl PlatformAccount
Sourcepub fn from_json(
json: &Value,
authorization: &Credentials,
) -> Result<PlatformAccount>
pub fn from_json( json: &Value, authorization: &Credentials, ) -> Result<PlatformAccount>
The account as its platform’s struct.
Trait Implementations§
Source§impl Clone for PlatformAccount
impl Clone for PlatformAccount
Source§impl Debug for PlatformAccount
impl Debug for PlatformAccount
Auto Trait Implementations§
impl Forget for PlatformAccount
impl Freeze for PlatformAccountwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<Platform>: Freeze,
PhantomData<ApiKey>: Freeze,
NonZero<i32>: Freeze,
Utc: Freeze,
impl Move for PlatformAccount
impl RefUnwindSafe for PlatformAccount
impl Send for PlatformAccount
impl Sync for PlatformAccount
impl Unpin for PlatformAccount
impl UnsafeUnpin for PlatformAccountwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Platform>: UnsafeUnpin,
PhantomData<ApiKey>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
Utc: UnsafeUnpin,
impl UnwindSafe for PlatformAccount
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