pub struct ManifestBuilder { /* private fields */ }Expand description
Builder for creating plugin manifests programmatically
Implementations§
Source§impl ManifestBuilder
impl ManifestBuilder
Sourcepub fn description(self, desc: &str) -> Self
pub fn description(self, desc: &str) -> Self
Set description
Set author
Sourcepub fn with_vector_search(self) -> Self
pub fn with_vector_search(self) -> Self
Enable vector search
Sourcepub fn with_index_search(self) -> Self
pub fn with_index_search(self) -> Self
Enable index search
Sourcepub fn memory_limit_mb(self, mb: u64) -> Self
pub fn memory_limit_mb(self, mb: u64) -> Self
Set memory limit
Sourcepub fn fuel_limit(self, fuel: u64) -> Self
pub fn fuel_limit(self, fuel: u64) -> Self
Set fuel limit
Sourcepub fn timeout_ms(self, ms: u64) -> Self
pub fn timeout_ms(self, ms: u64) -> Self
Set timeout
Sourcepub fn before_insert(self, func: &str) -> Self
pub fn before_insert(self, func: &str) -> Self
Add before_insert hook
Sourcepub fn after_insert(self, func: &str) -> Self
pub fn after_insert(self, func: &str) -> Self
Add after_insert hook
Sourcepub fn build(self) -> KernelResult<PluginManifest>
pub fn build(self) -> KernelResult<PluginManifest>
Build the manifest
Auto Trait Implementations§
impl Freeze for ManifestBuilder
impl RefUnwindSafe for ManifestBuilder
impl Send for ManifestBuilder
impl Sync for ManifestBuilder
impl Unpin for ManifestBuilder
impl UnsafeUnpin for ManifestBuilder
impl UnwindSafe for ManifestBuilder
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> 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