pub struct OpMetadata {
pub ignore_cache: bool,
pub description: HashMap<String, String>,
pub export_cache: Option<ExportCache>,
pub caps: HashMap<String, bool>,
pub progress_group: Option<ProgressGroup>,
}Expand description
OpMetadata is a per-vertex metadata entry, which can be defined for arbitrary Op vertex and overridable on the run time.
Fields§
§ignore_cache: boolignore_cache specifies to ignore the cache for this Op.
description: HashMap<String, String>Description can be used for keeping any text fields that builder doesn’t parse
export_cache: Option<ExportCache>index 3 reserved for WorkerConstraint in previous versions WorkerConstraint worker_constraint = 3;
caps: HashMap<String, bool>§progress_group: Option<ProgressGroup>Trait Implementations§
Source§impl Clone for OpMetadata
impl Clone for OpMetadata
Source§fn clone(&self) -> OpMetadata
fn clone(&self) -> OpMetadata
Returns a duplicate 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 OpMetadata
impl Debug for OpMetadata
Source§impl Default for OpMetadata
impl Default for OpMetadata
Source§fn default() -> OpMetadata
fn default() -> OpMetadata
Returns the “default value” for a type. Read more
Source§impl Into<OpMetadata> for OpMetadata
impl Into<OpMetadata> for OpMetadata
Source§fn into(self) -> OpMetadata
fn into(self) -> OpMetadata
Converts this type into the (usually inferred) input type.
Source§impl Message for OpMetadata
impl Message for OpMetadata
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for OpMetadata
impl PartialEq for OpMetadata
impl StructuralPartialEq for OpMetadata
Auto Trait Implementations§
impl Freeze for OpMetadata
impl RefUnwindSafe for OpMetadata
impl Send for OpMetadata
impl Sync for OpMetadata
impl Unpin for OpMetadata
impl UnwindSafe for OpMetadata
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> 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