pub trait AutoclipPlugin { // Required method fn on_clip(&self, contents: &str) -> Option<String>; }
Plugins must implement this trait. This trait is used to trigger events from the app.
This event will be triggered when the content of the clipboard is updated. If the plugin does not perform any modification for the content, this function must return None, instead of Some(contents.to_string()) .
Some(contents.to_string())