pub struct OperationSchema {
pub kind: &'static str,
pub label: &'static str,
pub doc: &'static str,
pub args: Vec<ArgSchema>,
}Expand description
One operation: its kind (as a program step spells it), a short label, what it does, and its arguments.
Fields§
§kind: &'static str§label: &'static str§doc: &'static str§args: Vec<ArgSchema>Trait Implementations§
Source§impl Clone for OperationSchema
impl Clone for OperationSchema
Source§fn clone(&self) -> OperationSchema
fn clone(&self) -> OperationSchema
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OperationSchema
impl Debug for OperationSchema
Source§impl PartialEq for OperationSchema
impl PartialEq for OperationSchema
Source§fn eq(&self, other: &OperationSchema) -> bool
fn eq(&self, other: &OperationSchema) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OperationSchema
impl Serialize for OperationSchema
impl StructuralPartialEq for OperationSchema
Auto Trait Implementations§
impl Freeze for OperationSchema
impl RefUnwindSafe for OperationSchema
impl Send for OperationSchema
impl Sync for OperationSchema
impl Unpin for OperationSchema
impl UnsafeUnpin for OperationSchema
impl UnwindSafe for OperationSchema
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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