Struct brane_ast::ast::ComputeTaskDef
source · pub struct ComputeTaskDef {
pub package: String,
pub version: Version,
pub function: Box<FunctionDef>,
pub args_names: Vec<String>,
pub requirements: HashSet<Capability>,
}
Expand description
Defines the contents of a compute task.
Fields§
§package: String
The name of the package that this task belongs to.
version: Version
The version of the package that this task belongs to.
function: Box<FunctionDef>
The definition of the function that this package implements.
args_names: Vec<String>
A list of names for every argument.
requirements: HashSet<Capability>
Any requirements required for this task.
Trait Implementations§
source§impl Clone for ComputeTaskDef
impl Clone for ComputeTaskDef
source§fn clone(&self) -> ComputeTaskDef
fn clone(&self) -> ComputeTaskDef
Returns a copy of the value. Read more
1.0.0 · 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 ComputeTaskDef
impl Debug for ComputeTaskDef
source§impl<'de> Deserialize<'de> for ComputeTaskDef
impl<'de> Deserialize<'de> for ComputeTaskDef
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ComputeTaskDef
impl RefUnwindSafe for ComputeTaskDef
impl Send for ComputeTaskDef
impl Sync for ComputeTaskDef
impl Unpin for ComputeTaskDef
impl UnwindSafe for ComputeTaskDef
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request