#[non_exhaustive]pub struct ListPullRequestsResponse {
pub pull_requests: Vec<PullRequest>,
pub next_page_token: String,
/* private fields */
}Expand description
ListPullRequestsResponse is the response to list pull requests.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.pull_requests: Vec<PullRequest>The list of pull requests.
next_page_token: StringA token identifying a page of results the server should return.
Implementations§
Source§impl ListPullRequestsResponse
impl ListPullRequestsResponse
pub fn new() -> Self
Sourcepub fn set_pull_requests<T, V>(self, v: T) -> Self
pub fn set_pull_requests<T, V>(self, v: T) -> Self
Sets the value of pull_requests.
§Example
ⓘ
use google_cloud_securesourcemanager_v1::model::PullRequest;
let x = ListPullRequestsResponse::new()
.set_pull_requests([
PullRequest::default()/* use setters */,
PullRequest::default()/* use (different) setters */,
]);Sourcepub fn set_next_page_token<T: Into<String>>(self, v: T) -> Self
pub fn set_next_page_token<T: Into<String>>(self, v: T) -> Self
Sets the value of next_page_token.
§Example
ⓘ
let x = ListPullRequestsResponse::new().set_next_page_token("example");Trait Implementations§
Source§impl Clone for ListPullRequestsResponse
impl Clone for ListPullRequestsResponse
Source§fn clone(&self) -> ListPullRequestsResponse
fn clone(&self) -> ListPullRequestsResponse
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 ListPullRequestsResponse
impl Debug for ListPullRequestsResponse
Source§impl Default for ListPullRequestsResponse
impl Default for ListPullRequestsResponse
Source§fn default() -> ListPullRequestsResponse
fn default() -> ListPullRequestsResponse
Returns the “default value” for a type. Read more
Source§impl Message for ListPullRequestsResponse
impl Message for ListPullRequestsResponse
Source§impl PartialEq for ListPullRequestsResponse
impl PartialEq for ListPullRequestsResponse
impl StructuralPartialEq for ListPullRequestsResponse
Auto Trait Implementations§
impl Freeze for ListPullRequestsResponse
impl RefUnwindSafe for ListPullRequestsResponse
impl Send for ListPullRequestsResponse
impl Sync for ListPullRequestsResponse
impl Unpin for ListPullRequestsResponse
impl UnwindSafe for ListPullRequestsResponse
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