pub struct ExecuteRequest {
pub instance_name: String,
pub skip_cache_lookup: bool,
pub action_digest: Option<Digest>,
pub execution_policy: Option<ExecutionPolicy>,
pub results_cache_policy: Option<ResultsCachePolicy>,
pub digest_function: i32,
pub inline_stdout: bool,
pub inline_stderr: bool,
pub inline_output_files: Vec<String>,
}Expand description
A request message for [Execution.Execute][build.bazel.remote.execution.v2.Execution.Execute].
Fields§
§instance_name: StringThe instance of the execution system to operate against. A server may support multiple instances of the execution system (with their own workers, storage, caches, etc.). The server MAY require use of this field to select between them in an implementation-defined fashion, otherwise it can be omitted.
skip_cache_lookup: boolIf true, the action will be executed even if its result is already present in the [ActionCache][build.bazel.remote.execution.v2.ActionCache]. The execution is still allowed to be merged with other in-flight executions of the same action, however - semantically, the service MUST only guarantee that the results of an execution with this field set were not visible before the corresponding execution request was sent. Note that actions from execution requests setting this field set are still eligible to be entered into the action cache upon completion, and services SHOULD overwrite any existing entries that may exist. This allows skip_cache_lookup requests to be used as a mechanism for replacing action cache entries that reference outputs no longer available or that are poisoned in any way. If false, the result may be served from the action cache.
action_digest: Option<Digest>The digest of the [Action][build.bazel.remote.execution.v2.Action] to execute.
execution_policy: Option<ExecutionPolicy>An optional policy for execution of the action. The server will have a default policy if this is not provided.
results_cache_policy: Option<ResultsCachePolicy>An optional policy for the results of this execution in the remote cache. The server will have a default policy if this is not provided. This may be applied to both the ActionResult and the associated blobs.
digest_function: i32The digest function that was used to compute the action digest.
If the digest function used is one of MD5, MURMUR3, SHA1, SHA256, SHA384, SHA512, or VSO, the client MAY leave this field unset. In that case the server SHOULD infer the digest function using the length of the action digest hash and the digest functions announced in the server’s capabilities.
inline_stdout: boolA hint to the server to request inlining stdout in the [ActionResult][build.bazel.remote.execution.v2.ActionResult] message.
inline_stderr: boolA hint to the server to request inlining stderr in the [ActionResult][build.bazel.remote.execution.v2.ActionResult] message.
inline_output_files: Vec<String>A hint to the server to inline the contents of the listed output files.
Each path needs to exactly match one file path in either output_paths or
output_files (DEPRECATED since v2.1) in the
[Command][build.bazel.remote.execution.v2.Command] message.
Implementations§
Source§impl ExecuteRequest
impl ExecuteRequest
Sourcepub fn digest_function(&self) -> Value
pub fn digest_function(&self) -> Value
Returns the enum value of digest_function, or the default if the field is set to an invalid enum value.
Sourcepub fn set_digest_function(&mut self, value: Value)
pub fn set_digest_function(&mut self, value: Value)
Sets digest_function to the provided enum value.
Trait Implementations§
Source§impl Clone for ExecuteRequest
impl Clone for ExecuteRequest
Source§fn clone(&self) -> ExecuteRequest
fn clone(&self) -> ExecuteRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExecuteRequest
impl Debug for ExecuteRequest
Source§impl Default for ExecuteRequest
impl Default for ExecuteRequest
Source§impl Message for ExecuteRequest
impl Message for ExecuteRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
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,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for ExecuteRequest
impl PartialEq for ExecuteRequest
impl StructuralPartialEq for ExecuteRequest
Auto Trait Implementations§
impl Freeze for ExecuteRequest
impl RefUnwindSafe for ExecuteRequest
impl Send for ExecuteRequest
impl Sync for ExecuteRequest
impl Unpin for ExecuteRequest
impl UnwindSafe for ExecuteRequest
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
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>
T in a tonic::Request