pub struct AffectedCode {
pub end_line: Option<i64>,
pub file: File,
pub owner: Option<User>,
pub remediation: Option<Remediation>,
pub start_line: Option<i64>,
}
Expand description
AffectedCode
JSON schema
{
"type": "object",
"required": [
"file"
],
"properties": {
"end_line": {
"type": "integer"
},
"file": {
"$ref": "#/$defs/file"
},
"owner": {
"$ref": "#/$defs/user"
},
"remediation": {
"$ref": "#/$defs/remediation"
},
"start_line": {
"type": "integer"
}
}
}
Fields§
§end_line: Option<i64>
§file: File
§owner: Option<User>
§remediation: Option<Remediation>
§start_line: Option<i64>
Implementations§
Source§impl AffectedCode
impl AffectedCode
pub fn builder() -> AffectedCode
Trait Implementations§
Source§impl Clone for AffectedCode
impl Clone for AffectedCode
Source§fn clone(&self) -> AffectedCode
fn clone(&self) -> AffectedCode
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 AffectedCode
impl Debug for AffectedCode
Source§impl<'de> Deserialize<'de> for AffectedCode
impl<'de> Deserialize<'de> for AffectedCode
Source§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 From<&AffectedCode> for AffectedCode
impl From<&AffectedCode> for AffectedCode
Source§fn from(value: &AffectedCode) -> Self
fn from(value: &AffectedCode) -> Self
Converts to this type from the input type.
Source§impl From<AffectedCode> for AffectedCode
impl From<AffectedCode> for AffectedCode
Source§fn from(value: AffectedCode) -> Self
fn from(value: AffectedCode) -> Self
Converts to this type from the input type.
Source§impl Serialize for AffectedCode
impl Serialize for AffectedCode
Source§impl TryFrom<AffectedCode> for AffectedCode
impl TryFrom<AffectedCode> for AffectedCode
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: AffectedCode) -> Result<Self, ConversionError>
fn try_from(value: AffectedCode) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for AffectedCode
impl RefUnwindSafe for AffectedCode
impl Send for AffectedCode
impl Sync for AffectedCode
impl Unpin for AffectedCode
impl UnwindSafe for AffectedCode
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