pub struct PluginActionMetadata {
pub id: String,
pub label: String,
pub description: String,
pub category: PluginActionCategory,
pub icon: PluginActionIcon,
pub placements: Vec<PluginActionPlacement>,
pub matcher: PluginActionMatcher,
pub destructive: bool,
pub confirmation: Option<String>,
}Fields§
§id: String§label: String§description: String§category: PluginActionCategory§icon: PluginActionIcon§placements: Vec<PluginActionPlacement>§matcher: PluginActionMatcher§destructive: bool§confirmation: Option<String>Implementations§
Source§impl PluginActionMetadata
impl PluginActionMetadata
pub fn validate(&self) -> Result<()>
pub fn matches_context(&self, context: &PluginActionContext) -> bool
Trait Implementations§
Source§impl Clone for PluginActionMetadata
impl Clone for PluginActionMetadata
Source§fn clone(&self) -> PluginActionMetadata
fn clone(&self) -> PluginActionMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PluginActionMetadata
impl Debug for PluginActionMetadata
Source§impl<'de> Deserialize<'de> for PluginActionMetadata
impl<'de> Deserialize<'de> for PluginActionMetadata
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
impl Eq for PluginActionMetadata
Source§impl PartialEq for PluginActionMetadata
impl PartialEq for PluginActionMetadata
Source§impl Serialize for PluginActionMetadata
impl Serialize for PluginActionMetadata
impl StructuralPartialEq for PluginActionMetadata
Auto Trait Implementations§
impl Freeze for PluginActionMetadata
impl RefUnwindSafe for PluginActionMetadata
impl Send for PluginActionMetadata
impl Sync for PluginActionMetadata
impl Unpin for PluginActionMetadata
impl UnsafeUnpin for PluginActionMetadata
impl UnwindSafe for PluginActionMetadata
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