pub struct SelectOperation<'c> { /* private fields */ }
Expand description
A select
operation. Select payload ops by name.
The handle defined by this Transform op corresponds to all operations among
target
that have the specified properties. Currently the following
properties are supported:
op_name
: The op must have the specified name.
The result payload ops are in the same relative order as the targeted ops.
This transform op reads the target
handle and produces the result
handle. It reads the payload, but does not modify it.
Implementations§
source§impl<'c> SelectOperation<'c>
impl<'c> SelectOperation<'c>
sourcepub fn as_operation(&self) -> &Operation<'c>
pub fn as_operation(&self) -> &Operation<'c>
Returns a generic operation.
sourcepub fn builder(
context: &'c Context,
location: Location<'c>
) -> SelectOperationBuilder<'c, Unset, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> SelectOperationBuilder<'c, Unset, Unset, Unset>
Creates a builder.
pub fn result(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn target(&self) -> Result<Value<'c, '_>, Error>
pub fn op_name(&self) -> Result<StringAttribute<'c>, Error>
pub fn set_op_name(&mut self, value: StringAttribute<'c>)
Trait Implementations§
source§impl<'c> From<SelectOperation<'c>> for Operation<'c>
impl<'c> From<SelectOperation<'c>> for Operation<'c>
source§fn from(operation: SelectOperation<'c>) -> Self
fn from(operation: SelectOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for SelectOperation<'c>
impl<'c> !Send for SelectOperation<'c>
impl<'c> !Sync for SelectOperation<'c>
impl<'c> Unpin for SelectOperation<'c>
impl<'c> UnwindSafe for SelectOperation<'c>
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