pub struct Metadata {Show 22 fields
pub workspace_id: String,
pub project_id: String,
pub build_id: String,
pub reference: String,
pub pull_request_number: Option<String>,
pub tracked_branch_id: Option<String>,
pub revision_oid: String,
pub result: i32,
pub branch: String,
pub backfill: bool,
pub root_directory: String,
pub repository_clone_url: String,
pub files_analyzed: Option<u32>,
pub start_time: Option<Timestamp>,
pub finish_time: Option<Timestamp>,
pub commit_message: String,
pub committed_at: Option<Timestamp>,
pub committer_email: String,
pub committer_name: String,
pub author_email: String,
pub author_name: String,
pub authored_at: Option<Timestamp>,
}Fields§
§workspace_id: String§project_id: String§build_id: String§reference: String§pull_request_number: Option<String>§tracked_branch_id: Option<String>§revision_oid: String§result: i32§branch: String§backfill: bool§root_directory: String§repository_clone_url: String§files_analyzed: Option<u32>§start_time: Option<Timestamp>§finish_time: Option<Timestamp>§commit_message: String§committed_at: Option<Timestamp>§committer_email: String§committer_name: StringImplementations§
Source§impl Metadata
impl Metadata
Sourcepub fn pull_request_number(&self) -> &str
pub fn pull_request_number(&self) -> &str
Returns the value of pull_request_number, or the default value if pull_request_number is unset.
Sourcepub fn tracked_branch_id(&self) -> &str
pub fn tracked_branch_id(&self) -> &str
Returns the value of tracked_branch_id, or the default value if tracked_branch_id is unset.
Sourcepub fn files_analyzed(&self) -> u32
pub fn files_analyzed(&self) -> u32
Returns the value of files_analyzed, or the default value if files_analyzed is unset.
Sourcepub fn result(&self) -> AnalysisResult
pub fn result(&self) -> AnalysisResult
Returns the enum value of result, or the default if the field is set to an invalid enum value.
Sourcepub fn set_result(&mut self, value: AnalysisResult)
pub fn set_result(&mut self, value: AnalysisResult)
Sets result to the provided enum value.
Trait Implementations§
§impl<'de> Deserialize<'de> for Metadata
impl<'de> Deserialize<'de> for Metadata
§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 Metadata
impl Message for Metadata
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.impl StructuralPartialEq for Metadata
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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