pub struct CodeScanningListAlertsForOrgParams<'req> { /* private fields */ }Expand description
Query parameters for the List code scanning alerts for an organization endpoint.
Implementations§
Source§impl<'req> CodeScanningListAlertsForOrgParams<'req>
impl<'req> CodeScanningListAlertsForOrgParams<'req>
pub fn new() -> Self
Sourcepub fn tool_name(self, tool_name: CodeScanningAnalysisToolName) -> Self
pub fn tool_name(self, tool_name: CodeScanningAnalysisToolName) -> Self
The name of a code scanning tool. Only results by this tool will be listed. You can specify the tool by using either tool_name or tool_guid, but not both.
Sourcepub fn tool_guid(self, tool_guid: CodeScanningAnalysisToolGuid) -> Self
pub fn tool_guid(self, tool_guid: CodeScanningAnalysisToolGuid) -> Self
The GUID of a code scanning tool. Only results by this tool will be listed. Note that some code scanning tools may not include a GUID in their analysis data. You can specify the tool by using either tool_guid or tool_name, but not both.
Sourcepub fn before(self, before: &'req str) -> Self
pub fn before(self, before: &'req str) -> Self
A cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API."
Sourcepub fn after(self, after: &'req str) -> Self
pub fn after(self, after: &'req str) -> Self
A cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API."
Sourcepub fn page(self, page: u16) -> Self
pub fn page(self, page: u16) -> Self
The page number of the results to fetch. For more information, see "Using pagination in the REST API."
Sourcepub fn per_page(self, per_page: u16) -> Self
pub fn per_page(self, per_page: u16) -> Self
The number of results per page (max 100). For more information, see "Using pagination in the REST API."
Sourcepub fn state(self, state: CodeScanningAlertStateQuery) -> Self
pub fn state(self, state: CodeScanningAlertStateQuery) -> Self
If specified, only code scanning alerts with this state will be returned.
Sourcepub fn severity(self, severity: CodeScanningAlertSeverity) -> Self
pub fn severity(self, severity: CodeScanningAlertSeverity) -> Self
If specified, only code scanning alerts with this severity will be returned.