pub enum AmiAction {
Login {
username: String,
secret: String,
events: Option<String>,
action_id: Option<String>,
},
Logoff {
action_id: Option<String>,
},
Ping {
action_id: Option<String>,
},
Command {
command: String,
action_id: Option<String>,
},
Custom {
action: String,
params: HashMap<String, String>,
action_id: Option<String>,
},
}
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AmiAction
impl<'de> Deserialize<'de> for AmiAction
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
Auto Trait Implementations§
impl Freeze for AmiAction
impl RefUnwindSafe for AmiAction
impl Send for AmiAction
impl Sync for AmiAction
impl Unpin for AmiAction
impl UnwindSafe for AmiAction
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