pub struct OperationFactory { /* private fields */ }
Implementations§
Source§impl OperationFactory
impl OperationFactory
pub fn new(sub_type_holder: Rc<SubTypeFunctionsHolder>) -> OperationFactory
pub fn from_value(&self, value: Value) -> Result<Operation>
pub fn list_operation_builder(&self, path: Path) -> ListOperationBuilder
pub fn object_operation_builder(&self, path: Path) -> ObjectOperationBuilder
pub fn number_add_operation_builder( &self, path: Path, ) -> NumberAddOperationBuilder
pub fn text_operation_builder(&self, path: Path) -> TextOperationBuilder
pub fn sub_type_operation_builder( &self, path: Path, sub_type_name: String, ) -> SubTypeOperationBuilder
Auto Trait Implementations§
impl Freeze for OperationFactory
impl !RefUnwindSafe for OperationFactory
impl !Send for OperationFactory
impl !Sync for OperationFactory
impl Unpin for OperationFactory
impl !UnwindSafe for OperationFactory
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