pub struct Issue {Show 36 fields
pub workspace_id: String,
pub project_id: String,
pub id: String,
pub reference: String,
pub build_id: String,
pub commit_sha: String,
pub pull_request_number: Option<String>,
pub tracked_branch_id: Option<String>,
pub analyzed_at: Option<Timestamp>,
pub tool: String,
pub driver: String,
pub rule_key: String,
pub message: String,
pub level: i32,
pub language: i32,
pub fingerprint: String,
pub category: i32,
pub snippet: String,
pub snippet_with_context: String,
pub replacement: String,
pub documentation_url: String,
pub effort_minutes: u32,
pub value: u32,
pub value_delta: u32,
pub source_checksum: String,
pub source_checksum_version: u32,
pub author: String,
pub author_time: Option<Timestamp>,
pub tags: Vec<String>,
pub location: Option<Location>,
pub other_locations: Vec<Location>,
pub suggestions: Vec<Suggestion>,
pub properties: Option<Struct>,
pub partial_fingerprints: HashMap<String, String>,
pub mode: i32,
pub on_added_line: bool,
}Fields§
§workspace_id: String§project_id: String§id: String§reference: String§build_id: String§commit_sha: String§pull_request_number: Option<String>§tracked_branch_id: Option<String>§analyzed_at: Option<Timestamp>§tool: String§driver: String§rule_key: String§message: String§level: i32§language: i32§fingerprint: String§category: i32§snippet: String§snippet_with_context: String§replacement: String§documentation_url: String§effort_minutes: u32§value: u32§value_delta: u32§source_checksum: String§source_checksum_version: u32§location: Option<Location>§other_locations: Vec<Location>§suggestions: Vec<Suggestion>§properties: Option<Struct>§partial_fingerprints: HashMap<String, String>§mode: i32§on_added_line: boolImplementations§
Source§impl Issue
impl Issue
Sourcepub fn language(&self) -> Language
pub fn language(&self) -> Language
Returns the enum value of language, or the default if the field is set to an invalid enum value.
Sourcepub fn set_language(&mut self, value: Language)
pub fn set_language(&mut self, value: Language)
Sets language to the provided enum value.
Sourcepub fn category(&self) -> Category
pub fn category(&self) -> Category
Returns the enum value of category, or the default if the field is set to an invalid enum value.
Sourcepub fn set_category(&mut self, value: Category)
pub fn set_category(&mut self, value: Category)
Sets category to the provided enum value.
Sourcepub fn level(&self) -> Level
pub fn level(&self) -> Level
Returns the enum value of level, or the default if the field is set to an invalid enum value.
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.
Source§impl Issue
impl Issue
pub fn rule_id(&self) -> String
pub fn set_property_string(&mut self, key: &str, value: String)
pub fn set_property_number(&mut self, key: &str, value: f64)
pub fn set_property_bool(&mut self, key: &str, value: bool)
pub fn get_property_string(&self, key: &str) -> String
pub fn get_property_number(&self, key: &str) -> f64
pub fn get_property_bool(&self, key: &str) -> bool
pub fn path(&self) -> Option<String>
pub fn line_range(&self) -> Option<RangeInclusive<usize>>
pub fn range(&self) -> Option<Range>
pub fn location(&self) -> Option<Location>
Trait Implementations§
§impl<'de> Deserialize<'de> for Issue
impl<'de> Deserialize<'de> for Issue
§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 Issue
impl Message for Issue
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 Ord for Issue
impl Ord for Issue
Source§impl PartialOrd for Issue
impl PartialOrd for Issue
impl Eq for Issue
impl StructuralPartialEq for Issue
Auto Trait Implementations§
impl Freeze for Issue
impl RefUnwindSafe for Issue
impl Send for Issue
impl Sync for Issue
impl Unpin for Issue
impl UnwindSafe for Issue
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