Enum ExtensionCommand
pub enum ExtensionCommand {
GetProviderScopes(PackageNameArgs),
GetAccounts(PackageNameArgs),
PerformAccountLogin(AccountLoginArgs),
ExtraExtensionEvent(ExtensionExtraEventArgs),
}
Variants§
GetProviderScopes(PackageNameArgs)
GetAccounts(PackageNameArgs)
PerformAccountLogin(AccountLoginArgs)
ExtraExtensionEvent(ExtensionExtraEventArgs)
Implementations§
§impl ExtensionCommand
impl ExtensionCommand
pub fn to_plugin_call(&self) -> (String, &'static str, Vec<u8>)
pub fn parse_response( &self, value: Value, ) -> Result<ExtensionCommandResponse, MoosyncError>
Trait Implementations§
§impl Clone for ExtensionCommand
impl Clone for ExtensionCommand
§fn clone(&self) -> ExtensionCommand
fn clone(&self) -> ExtensionCommand
Returns a copy 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 more§impl Debug for ExtensionCommand
impl Debug for ExtensionCommand
§impl TryFrom<(&str, &Value)> for ExtensionCommand
impl TryFrom<(&str, &Value)> for ExtensionCommand
§type Error = MoosyncError
type Error = MoosyncError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for ExtensionCommand
impl RefUnwindSafe for ExtensionCommand
impl Send for ExtensionCommand
impl Sync for ExtensionCommand
impl Unpin for ExtensionCommand
impl UnwindSafe for ExtensionCommand
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