#[non_exhaustive]pub struct SearchProjectsResponse {
pub projects: Vec<Project>,
pub next_page_token: String,
/* private fields */
}Expand description
A page of the response received from the SearchProjects method.
A paginated response where more pages are available has
next_page_token set. This token can be used in a subsequent request to
retrieve the next request page.
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.projects: Vec<Project>The list of Projects that matched the list filter query. This list can be paginated.
next_page_token: StringPagination token.
If the result set is too large to fit in a single response, this token
is returned. It encodes the position of the current result cursor.
Feeding this value into a new list request with the page_token parameter
gives the next page of the results.
When next_page_token is not filled in, there is no next page and
the list returned is the last page in the result set.
Pagination tokens have a limited lifetime.
Implementations§
Source§impl SearchProjectsResponse
impl SearchProjectsResponse
Sourcepub fn set_projects<T, V>(self, v: T) -> Self
pub fn set_projects<T, V>(self, v: T) -> Self
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 = SearchProjectsResponse::new().set_next_page_token("example");Trait Implementations§
Source§impl Clone for SearchProjectsResponse
impl Clone for SearchProjectsResponse
Source§fn clone(&self) -> SearchProjectsResponse
fn clone(&self) -> SearchProjectsResponse
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 SearchProjectsResponse
impl Debug for SearchProjectsResponse
Source§impl Default for SearchProjectsResponse
impl Default for SearchProjectsResponse
Source§fn default() -> SearchProjectsResponse
fn default() -> SearchProjectsResponse
Source§impl Message for SearchProjectsResponse
impl Message for SearchProjectsResponse
Source§impl PartialEq for SearchProjectsResponse
impl PartialEq for SearchProjectsResponse
impl StructuralPartialEq for SearchProjectsResponse
Auto Trait Implementations§
impl Freeze for SearchProjectsResponse
impl RefUnwindSafe for SearchProjectsResponse
impl Send for SearchProjectsResponse
impl Sync for SearchProjectsResponse
impl Unpin for SearchProjectsResponse
impl UnsafeUnpin for SearchProjectsResponse
impl UnwindSafe for SearchProjectsResponse
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