pub struct Plugin {
pub reference: String,
pub location: PluginLocation,
pub access: PluginAccess,
pub verification: PluginVerification,
pub weight: f64,
pub config: Map<String, Value>,
pub permissions: Permissions,
}Expand description
The configuration for an individual plugin.
This structure will be wrapped by structs in the host environment.
Fields§
§reference: StringThe plugin reference key. Should be limited to ASCII lowercase a-z plus underscores. Maximum 96 characters.
location: PluginLocationThe location where the plugin WASM can be loaded from.
access: PluginAccessThe access requirements for the plugin. If the plugin requires authentication, this can be provided here.
verification: PluginVerificationVerification that plugin contents match what was expected.
weight: f64A weight to multiply this plugin’s decision values by.
A 1.0 value has no effect on the decision. See bulwark_decision::Decision::weight.
config: Map<String, Value>JSON-serializable configuration passed into the plugin environment.
The host environment will not do anything with this value beyond serialization.
permissions: PermissionsThe permissions granted to this plugin.
Any attempt to perform an operation within the plugin sandbox that requires a permission to be set will fail.
Trait Implementations§
Source§impl<'v_a> ValidateArgs<'v_a> for Plugin
impl<'v_a> ValidateArgs<'v_a> for Plugin
Auto Trait Implementations§
impl !Freeze for Plugin
impl RefUnwindSafe for Plugin
impl Send for Plugin
impl Sync for Plugin
impl Unpin for Plugin
impl UnwindSafe for Plugin
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
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>
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>
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