pub struct PythonPlugin {
pub name: String,
pub version: String,
pub code: String,
pub packages: Vec<String>,
pub wheels: Vec<String>,
pub triggers: HashMap<String, Vec<TriggerEvent>>,
pub config: Option<RuntimeConfig>,
}Expand description
A Python plugin with code and trigger bindings
Fields§
§name: StringUnique plugin name
version: StringPlugin version
code: StringPython source code
packages: Vec<String>Required packages
wheels: Vec<String>Custom wheel URLs (for private packages)
triggers: HashMap<String, Vec<TriggerEvent>>Table → Events mapping
config: Option<RuntimeConfig>Plugin-specific config overrides
Implementations§
Source§impl PythonPlugin
impl PythonPlugin
pub fn new(name: &str) -> Self
pub fn with_version(self, version: &str) -> Self
pub fn with_code(self, code: &str) -> Self
pub fn with_packages(self, packages: Vec<&str>) -> Self
pub fn with_trigger(self, table: &str, event: TriggerEvent) -> Self
pub fn with_config(self, config: RuntimeConfig) -> Self
Trait Implementations§
Source§impl Clone for PythonPlugin
impl Clone for PythonPlugin
Source§fn clone(&self) -> PythonPlugin
fn clone(&self) -> PythonPlugin
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 moreAuto Trait Implementations§
impl Freeze for PythonPlugin
impl RefUnwindSafe for PythonPlugin
impl Send for PythonPlugin
impl Sync for PythonPlugin
impl Unpin for PythonPlugin
impl UnsafeUnpin for PythonPlugin
impl UnwindSafe for PythonPlugin
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more