pub struct Operation {
pub form: Expr,
pub result_shape: Option<ShapeRef>,
pub required_capabilities: Vec<CapabilityName>,
}Expand description
A checked operation produced by an editor commit, ready to be submitted
through realize.
Fields§
§form: ExprThe checked operation form to realize.
result_shape: Option<ShapeRef>Optional shape the realized result must satisfy before it is accepted.
required_capabilities: Vec<CapabilityName>Capabilities the realization target must hold to answer the operation.
Implementations§
Source§impl Operation
impl Operation
Sourcepub fn with_result_shape(self, shape: ShapeRef) -> Self
pub fn with_result_shape(self, shape: ShapeRef) -> Self
Attach the expected shape of the realized result.
Sourcepub fn requiring(self, capability: CapabilityName) -> Self
pub fn requiring(self, capability: CapabilityName) -> Self
Attach one capability required by the realization target.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Operation
impl !UnwindSafe for Operation
impl Freeze for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin for Operation
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