pub struct Invocation {Show 30 fields
pub workspace_id: String,
pub project_id: String,
pub reference: String,
pub build_id: String,
pub build_timestamp: Option<Timestamp>,
pub commit_sha: String,
pub id: String,
pub qlty_cli_version: String,
pub plugin_name: String,
pub driver_name: String,
pub prefix: String,
pub plugin_version: String,
pub verb: i32,
pub targets_count: u32,
pub target_paths: Vec<String>,
pub config_paths: Vec<String>,
pub script: String,
pub cwd: String,
pub env: HashMap<String, String>,
pub started_at: Option<Timestamp>,
pub duration_secs: f32,
pub exit_code: Option<i64>,
pub stdout: String,
pub stderr: String,
pub tmpfile_path: Option<String>,
pub tmpfile_contents: Option<String>,
pub exit_result: i32,
pub parser_error: Option<String>,
pub issues_count: u32,
pub rewrites_count: u32,
}Fields§
§workspace_id: String§project_id: String§reference: String§build_id: String§build_timestamp: Option<Timestamp>§commit_sha: String§id: StringMetadata
qlty_cli_version: String§plugin_name: String§driver_name: String§prefix: String§plugin_version: String§verb: i32Inputs
targets_count: u32§target_paths: Vec<String>§config_paths: Vec<String>§script: StringExecution
cwd: String§env: HashMap<String, String>§started_at: Option<Timestamp>Timing
duration_secs: f32§exit_code: Option<i64>Outputs
stdout: String§stderr: String§tmpfile_path: Option<String>§tmpfile_contents: Option<String>§exit_result: i32Results
parser_error: Option<String>§issues_count: u32§rewrites_count: u32Implementations§
Source§impl Invocation
impl Invocation
Sourcepub fn verb(&self) -> ExecutionVerb
pub fn verb(&self) -> ExecutionVerb
Returns the enum value of verb, or the default if the field is set to an invalid enum value.
Sourcepub fn set_verb(&mut self, value: ExecutionVerb)
pub fn set_verb(&mut self, value: ExecutionVerb)
Sets verb to the provided enum value.
Sourcepub fn exit_code(&self) -> i64
pub fn exit_code(&self) -> i64
Returns the value of exit_code, or the default value if exit_code is unset.
Sourcepub fn tmpfile_path(&self) -> &str
pub fn tmpfile_path(&self) -> &str
Returns the value of tmpfile_path, or the default value if tmpfile_path is unset.
Sourcepub fn tmpfile_contents(&self) -> &str
pub fn tmpfile_contents(&self) -> &str
Returns the value of tmpfile_contents, or the default value if tmpfile_contents is unset.
Sourcepub fn exit_result(&self) -> ExitResult
pub fn exit_result(&self) -> ExitResult
Returns the enum value of exit_result, or the default if the field is set to an invalid enum value.
Sourcepub fn set_exit_result(&mut self, value: ExitResult)
pub fn set_exit_result(&mut self, value: ExitResult)
Sets exit_result to the provided enum value.
Sourcepub fn parser_error(&self) -> &str
pub fn parser_error(&self) -> &str
Returns the value of parser_error, or the default value if parser_error is unset.
Trait Implementations§
Source§impl Clone for Invocation
impl Clone for Invocation
Source§fn clone(&self) -> Invocation
fn clone(&self) -> Invocation
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 Invocation
impl Debug for Invocation
Source§impl Default for Invocation
impl Default for Invocation
§impl<'de> Deserialize<'de> for Invocation
impl<'de> Deserialize<'de> for Invocation
§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
Source§impl Message for Invocation
impl Message for Invocation
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(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for Invocation
impl PartialEq for Invocation
§impl Serialize for Invocation
impl Serialize for Invocation
impl StructuralPartialEq for Invocation
Auto Trait Implementations§
impl Freeze for Invocation
impl RefUnwindSafe for Invocation
impl Send for Invocation
impl Sync for Invocation
impl Unpin for Invocation
impl UnwindSafe for Invocation
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