#[non_exhaustive]pub struct ListCodeReviewsInput {
pub provider_types: Option<Vec<ProviderType>>,
pub states: Option<Vec<JobState>>,
pub repository_names: Option<Vec<String>>,
pub type: Option<Type>,
pub max_results: Option<i32>,
pub next_token: Option<String>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.provider_types: Option<Vec<ProviderType>>
List of provider types for filtering that needs to be applied before displaying the result. For example, providerTypes=[GitHub]
lists code reviews from GitHub.
states: Option<Vec<JobState>>
List of states for filtering that needs to be applied before displaying the result. For example, states=[Pending]
lists code reviews in the Pending state.
The valid code review states are:
-
Completed
: The code review is complete. -
Pending
: The code review started and has not completed or failed. -
Failed
: The code review failed. -
Deleting
: The code review is being deleted.
repository_names: Option<Vec<String>>
List of repository names for filtering that needs to be applied before displaying the result.
type: Option<Type>
The type of code reviews to list in the response.
max_results: Option<i32>
The maximum number of results that are returned per call. The default is 100.
next_token: Option<String>
If nextToken
is returned, there are more results available. The value of nextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.
Implementations§
source§impl ListCodeReviewsInput
impl ListCodeReviewsInput
sourcepub fn provider_types(&self) -> &[ProviderType]
pub fn provider_types(&self) -> &[ProviderType]
List of provider types for filtering that needs to be applied before displaying the result. For example, providerTypes=[GitHub]
lists code reviews from GitHub.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .provider_types.is_none()
.
sourcepub fn states(&self) -> &[JobState]
pub fn states(&self) -> &[JobState]
List of states for filtering that needs to be applied before displaying the result. For example, states=[Pending]
lists code reviews in the Pending state.
The valid code review states are:
-
Completed
: The code review is complete. -
Pending
: The code review started and has not completed or failed. -
Failed
: The code review failed. -
Deleting
: The code review is being deleted.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .states.is_none()
.
sourcepub fn repository_names(&self) -> &[String]
pub fn repository_names(&self) -> &[String]
List of repository names for filtering that needs to be applied before displaying the result.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .repository_names.is_none()
.
sourcepub fn max_results(&self) -> Option<i32>
pub fn max_results(&self) -> Option<i32>
The maximum number of results that are returned per call. The default is 100.
sourcepub fn next_token(&self) -> Option<&str>
pub fn next_token(&self) -> Option<&str>
If nextToken
is returned, there are more results available. The value of nextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.
source§impl ListCodeReviewsInput
impl ListCodeReviewsInput
sourcepub fn builder() -> ListCodeReviewsInputBuilder
pub fn builder() -> ListCodeReviewsInputBuilder
Creates a new builder-style object to manufacture ListCodeReviewsInput
.
Trait Implementations§
source§impl Clone for ListCodeReviewsInput
impl Clone for ListCodeReviewsInput
source§fn clone(&self) -> ListCodeReviewsInput
fn clone(&self) -> ListCodeReviewsInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ListCodeReviewsInput
impl Debug for ListCodeReviewsInput
source§impl PartialEq for ListCodeReviewsInput
impl PartialEq for ListCodeReviewsInput
source§fn eq(&self, other: &ListCodeReviewsInput) -> bool
fn eq(&self, other: &ListCodeReviewsInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ListCodeReviewsInput
Auto Trait Implementations§
impl Freeze for ListCodeReviewsInput
impl RefUnwindSafe for ListCodeReviewsInput
impl Send for ListCodeReviewsInput
impl Sync for ListCodeReviewsInput
impl Unpin for ListCodeReviewsInput
impl UnwindSafe for ListCodeReviewsInput
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more