#[non_exhaustive]pub struct ListProjectsRequest {
pub parent: String,
pub page_token: String,
pub page_size: i32,
pub show_deleted: bool,
/* private fields */
}Expand description
The request sent to the ListProjects method.
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.parent: StringRequired. The name of the parent resource whose projects are being listed. Only children of this parent resource are listed; descendants are not listed.
If the parent is a folder, use the value folders/{folder_id}. If the
parent is an organization, use the value organizations/{org_id}.
page_token: StringOptional. A pagination token returned from a previous call to [ListProjects] [google.cloud.resourcemanager.v3.Projects.ListProjects] that indicates from where listing should continue.
page_size: i32Optional. The maximum number of projects to return in the response. The server can return fewer projects than requested. If unspecified, server picks an appropriate default.
show_deleted: boolOptional. Indicate that projects in the DELETE_REQUESTED state should
also be returned. Normally only ACTIVE projects are returned.
Implementations§
Source§impl ListProjectsRequest
impl ListProjectsRequest
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_page_token<T: Into<String>>(self, v: T) -> Self
pub fn set_page_token<T: Into<String>>(self, v: T) -> Self
Sets the value of page_token.
§Example
let x = ListProjectsRequest::new().set_page_token("example");Sourcepub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
pub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
Sourcepub fn set_show_deleted<T: Into<bool>>(self, v: T) -> Self
pub fn set_show_deleted<T: Into<bool>>(self, v: T) -> Self
Sets the value of show_deleted.
§Example
let x = ListProjectsRequest::new().set_show_deleted(true);Trait Implementations§
Source§impl Clone for ListProjectsRequest
impl Clone for ListProjectsRequest
Source§fn clone(&self) -> ListProjectsRequest
fn clone(&self) -> ListProjectsRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ListProjectsRequest
impl Debug for ListProjectsRequest
Source§impl Default for ListProjectsRequest
impl Default for ListProjectsRequest
Source§fn default() -> ListProjectsRequest
fn default() -> ListProjectsRequest
Source§impl Message for ListProjectsRequest
impl Message for ListProjectsRequest
Source§impl PartialEq for ListProjectsRequest
impl PartialEq for ListProjectsRequest
impl StructuralPartialEq for ListProjectsRequest
Auto Trait Implementations§
impl Freeze for ListProjectsRequest
impl RefUnwindSafe for ListProjectsRequest
impl Send for ListProjectsRequest
impl Sync for ListProjectsRequest
impl Unpin for ListProjectsRequest
impl UnsafeUnpin for ListProjectsRequest
impl UnwindSafe for ListProjectsRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request