[][src]Struct google_remotebuildexecution2::BuildBazelRemoteExecutionV2ActionResult

pub struct BuildBazelRemoteExecutionV2ActionResult {
    pub execution_metadata: Option<BuildBazelRemoteExecutionV2ExecutedActionMetadata>,
    pub output_file_symlinks: Option<Vec<BuildBazelRemoteExecutionV2OutputSymlink>>,
    pub stderr_digest: Option<BuildBazelRemoteExecutionV2Digest>,
    pub stdout_raw: Option<String>,
    pub stderr_raw: Option<String>,
    pub stdout_digest: Option<BuildBazelRemoteExecutionV2Digest>,
    pub output_files: Option<Vec<BuildBazelRemoteExecutionV2OutputFile>>,
    pub output_directory_symlinks: Option<Vec<BuildBazelRemoteExecutionV2OutputSymlink>>,
    pub output_directories: Option<Vec<BuildBazelRemoteExecutionV2OutputDirectory>>,
    pub exit_code: Option<i32>,
}

An ActionResult represents the result of an Action being run.

Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields

execution_metadata: Option<BuildBazelRemoteExecutionV2ExecutedActionMetadata>

The details of the execution that originally produced this result.

output_file_symlinks: Option<Vec<BuildBazelRemoteExecutionV2OutputSymlink>>

The output files of the action that are symbolic links to other files. Those may be links to other output files, or input files, or even absolute paths outside of the working directory, if the server supports SymlinkAbsolutePathStrategy.ALLOWED. For each output file requested in the output_files field of the Action, if the corresponding file existed after the action completed, a single entry will be present either in this field, or in the output_files field, if the file was not a symbolic link.

If an output symbolic link of the same name was found, but its target type was not a regular file, the server will return a FAILED_PRECONDITION. If the action does not produce the requested output, then that output will be omitted from the list. The server is free to arrange the output list as desired; clients MUST NOT assume that the output list is sorted.

stderr_digest: Option<BuildBazelRemoteExecutionV2Digest>

The digest for a blob containing the standard error of the action, which can be retrieved from the ContentAddressableStorage.

stdout_raw: Option<String>

The standard output buffer of the action. The server SHOULD NOT inline stdout unless requested by the client in the GetActionResultRequest message. The server MAY omit inlining, even if requested, and MUST do so if inlining would cause the response to exceed message size limits.

stderr_raw: Option<String>

The standard error buffer of the action. The server SHOULD NOT inline stderr unless requested by the client in the GetActionResultRequest message. The server MAY omit inlining, even if requested, and MUST do so if inlining would cause the response to exceed message size limits.

stdout_digest: Option<BuildBazelRemoteExecutionV2Digest>

The digest for a blob containing the standard output of the action, which can be retrieved from the ContentAddressableStorage.

output_files: Option<Vec<BuildBazelRemoteExecutionV2OutputFile>>

The output files of the action. For each output file requested in the output_files field of the Action, if the corresponding file existed after the action completed, a single entry will be present either in this field, or the output_file_symlinks field if the file was a symbolic link to another file.

If an output of the same name was found, but was a directory rather than a regular file, the server will return a FAILED_PRECONDITION. If the action does not produce the requested output, then that output will be omitted from the list. The server is free to arrange the output list as desired; clients MUST NOT assume that the output list is sorted.

output_directory_symlinks: Option<Vec<BuildBazelRemoteExecutionV2OutputSymlink>>

The output directories of the action that are symbolic links to other directories. Those may be links to other output directories, or input directories, or even absolute paths outside of the working directory, if the server supports SymlinkAbsolutePathStrategy.ALLOWED. For each output directory requested in the output_directories field of the Action, if the directory existed after the action completed, a single entry will be present either in this field, or in the output_directories field, if the directory was not a symbolic link.

If an output of the same name was found, but was a symbolic link to a file instead of a directory, the server will return a FAILED_PRECONDITION. If the action does not produce the requested output, then that output will be omitted from the list. The server is free to arrange the output list as desired; clients MUST NOT assume that the output list is sorted.

output_directories: Option<Vec<BuildBazelRemoteExecutionV2OutputDirectory>>

The output directories of the action. For each output directory requested in the output_directories field of the Action, if the corresponding directory existed after the action completed, a single entry will be present in the output list, which will contain the digest of a Tree message containing the directory tree, and the path equal exactly to the corresponding Action output_directories member.

As an example, suppose the Action had an output directory a/b/dir and the execution produced the following contents in a/b/dir: a file named bar and a directory named foo with an executable file named baz. Then, output_directory will contain (hashes shortened for readability):

// OutputDirectory proto:
{
  path: "a/b/dir"
  tree_digest: {
    hash: "4a73bc9d03...",
    size: 55
  }
}
// Tree proto with hash "4a73bc9d03..." and size 55:
{
  root: {
    files: [
      {
        name: "bar",
        digest: {
          hash: "4a73bc9d03...",
          size: 65534
        }
      }
    ],
    directories: [
      {
        name: "foo",
        digest: {
          hash: "4cf2eda940...",
          size: 43
        }
      }
    ]
  }
  children : {
    // (Directory proto with hash "4cf2eda940..." and size 43)
    files: [
      {
        name: "baz",
        digest: {
          hash: "b2c941073e...",
          size: 1294,
        },
        is_executable: true
      }
    ]
  }
}

If an output of the same name was found, but was not a directory, the server will return a FAILED_PRECONDITION.

exit_code: Option<i32>

The exit code of the command.

Trait Implementations

impl ResponseResult for BuildBazelRemoteExecutionV2ActionResult[src]

impl RequestValue for BuildBazelRemoteExecutionV2ActionResult[src]

impl Default for BuildBazelRemoteExecutionV2ActionResult[src]

impl Clone for BuildBazelRemoteExecutionV2ActionResult[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for BuildBazelRemoteExecutionV2ActionResult[src]

impl Serialize for BuildBazelRemoteExecutionV2ActionResult[src]

impl<'de> Deserialize<'de> for BuildBazelRemoteExecutionV2ActionResult[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]