Struct CodeScanningListAlertsForOrgParams

Source
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>

Source

pub fn new() -> Self

Source

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.

Source

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.

Source

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."

Source

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."

Source

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."

Source

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."

Source

pub fn direction(self, direction: &'req str) -> Self

The direction to sort the results by.

Source

pub fn state(self, state: CodeScanningAlertStateQuery) -> Self

If specified, only code scanning alerts with this state will be returned.

Source

pub fn sort(self, sort: &'req str) -> Self

The property by which to sort the results.

Source

pub fn severity(self, severity: CodeScanningAlertSeverity) -> Self

If specified, only code scanning alerts with this severity will be returned.

Trait Implementations§

Source§

impl<'req> Default for CodeScanningListAlertsForOrgParams<'req>

Source§

fn default() -> CodeScanningListAlertsForOrgParams<'req>

Returns the “default value” for a type. Read more
Source§

impl<'enc> From<&'enc PerPage> for CodeScanningListAlertsForOrgParams<'enc>

Source§

fn from(per_page: &'enc PerPage) -> Self

Converts to this type from the input type.
Source§

impl<'req> Serialize for CodeScanningListAlertsForOrgParams<'req>

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.