pub struct RuntimeBuilder { /* private fields */ }Expand description
Builder for creating a Runtime with selective function registration.
§Example
use jpx_core::Runtime;
use jpx_core::Category;
let rt = Runtime::builder()
.with_standard()
.with_category(Category::String)
.with_category(Category::Math)
.build();Implementations§
Source§impl RuntimeBuilder
impl RuntimeBuilder
Sourcepub fn with_standard(self) -> Self
pub fn with_standard(self) -> Self
Includes the 26 standard JMESPath functions.
Sourcepub fn with_category(self, category: Category) -> Self
pub fn with_category(self, category: Category) -> Self
Includes all functions from a specific category.
Sourcepub fn with_all_extensions(self) -> Self
pub fn with_all_extensions(self) -> Self
Includes all available extension functions.
Sourcepub fn without_function(self, name: &str) -> Self
pub fn without_function(self, name: &str) -> Self
Disables a specific function.
Auto Trait Implementations§
impl Freeze for RuntimeBuilder
impl RefUnwindSafe for RuntimeBuilder
impl Send for RuntimeBuilder
impl Sync for RuntimeBuilder
impl Unpin for RuntimeBuilder
impl UnsafeUnpin for RuntimeBuilder
impl UnwindSafe for RuntimeBuilder
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