pub enum CodeActionOrCommand {
Command(Command),
CodeAction(CodeAction),
}
Variants§
Command(Command)
CodeAction(CodeAction)
Trait Implementations§
Source§impl Clone for CodeActionOrCommand
impl Clone for CodeActionOrCommand
Source§fn clone(&self) -> CodeActionOrCommand
fn clone(&self) -> CodeActionOrCommand
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 moreSource§impl Debug for CodeActionOrCommand
impl Debug for CodeActionOrCommand
Source§impl<'de> Deserialize<'de> for CodeActionOrCommand
impl<'de> Deserialize<'de> for CodeActionOrCommand
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CodeActionOrCommand, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CodeActionOrCommand, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<CodeAction> for CodeActionOrCommand
impl From<CodeAction> for CodeActionOrCommand
Source§fn from(action: CodeAction) -> CodeActionOrCommand
fn from(action: CodeAction) -> CodeActionOrCommand
Converts to this type from the input type.
Source§impl From<Command> for CodeActionOrCommand
impl From<Command> for CodeActionOrCommand
Source§fn from(command: Command) -> CodeActionOrCommand
fn from(command: Command) -> CodeActionOrCommand
Converts to this type from the input type.
Source§impl PartialEq for CodeActionOrCommand
impl PartialEq for CodeActionOrCommand
Source§impl Serialize for CodeActionOrCommand
impl Serialize for CodeActionOrCommand
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CodeActionOrCommand
Auto Trait Implementations§
impl Freeze for CodeActionOrCommand
impl !RefUnwindSafe for CodeActionOrCommand
impl Send for CodeActionOrCommand
impl Sync for CodeActionOrCommand
impl Unpin for CodeActionOrCommand
impl UnwindSafe for CodeActionOrCommand
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