pub struct RepositoryRuleParamsCodeScanningTool {
pub alerts_threshold: AlertsThreshold,
pub security_alerts_threshold: SecurityAlertsThreshold,
pub tool: String,
}
Expand description
RepositoryRuleParamsCodeScanningTool : A tool that must provide code scanning results for this rule to pass.
Fields§
§alerts_threshold: AlertsThreshold
The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see "About code scanning alerts."
security_alerts_threshold: SecurityAlertsThreshold
The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see "About code scanning alerts."
tool: String
The name of a code scanning tool
Implementations§
Source§impl RepositoryRuleParamsCodeScanningTool
impl RepositoryRuleParamsCodeScanningTool
Sourcepub fn new(
alerts_threshold: AlertsThreshold,
security_alerts_threshold: SecurityAlertsThreshold,
tool: String,
) -> RepositoryRuleParamsCodeScanningTool
pub fn new( alerts_threshold: AlertsThreshold, security_alerts_threshold: SecurityAlertsThreshold, tool: String, ) -> RepositoryRuleParamsCodeScanningTool
A tool that must provide code scanning results for this rule to pass.
Trait Implementations§
Source§impl Clone for RepositoryRuleParamsCodeScanningTool
impl Clone for RepositoryRuleParamsCodeScanningTool
Source§fn clone(&self) -> RepositoryRuleParamsCodeScanningTool
fn clone(&self) -> RepositoryRuleParamsCodeScanningTool
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 Default for RepositoryRuleParamsCodeScanningTool
impl Default for RepositoryRuleParamsCodeScanningTool
Source§fn default() -> RepositoryRuleParamsCodeScanningTool
fn default() -> RepositoryRuleParamsCodeScanningTool
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RepositoryRuleParamsCodeScanningTool
impl<'de> Deserialize<'de> for RepositoryRuleParamsCodeScanningTool
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 PartialEq for RepositoryRuleParamsCodeScanningTool
impl PartialEq for RepositoryRuleParamsCodeScanningTool
Source§fn eq(&self, other: &RepositoryRuleParamsCodeScanningTool) -> bool
fn eq(&self, other: &RepositoryRuleParamsCodeScanningTool) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for RepositoryRuleParamsCodeScanningTool
Auto Trait Implementations§
impl Freeze for RepositoryRuleParamsCodeScanningTool
impl RefUnwindSafe for RepositoryRuleParamsCodeScanningTool
impl Send for RepositoryRuleParamsCodeScanningTool
impl Sync for RepositoryRuleParamsCodeScanningTool
impl Unpin for RepositoryRuleParamsCodeScanningTool
impl UnwindSafe for RepositoryRuleParamsCodeScanningTool
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