#[non_exhaustive]pub struct ListProfilesResponse {
pub profiles: Vec<Profile>,
pub next_page_token: String,
pub skipped_profiles: i32,
/* private fields */
}Expand description
ListProfileResponse contains the list of collected profiles for deployments in projects which the user has permissions to view.
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.profiles: Vec<Profile>List of profiles fetched.
next_page_token: StringToken to receive the next page of results. This field maybe empty if there are no more profiles to fetch.
skipped_profiles: i32Number of profiles that were skipped in the current page since they were not able to be fetched successfully. This should typically be zero. A non-zero value may indicate a transient failure, in which case if the number is too high for your use case, the call may be retried.
Implementations§
Source§impl ListProfilesResponse
impl ListProfilesResponse
pub fn new() -> Self
Sourcepub fn set_profiles<T, V>(self, v: T) -> Self
pub fn set_profiles<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 = ListProfilesResponse::new().set_next_page_token("example");Sourcepub fn set_skipped_profiles<T: Into<i32>>(self, v: T) -> Self
pub fn set_skipped_profiles<T: Into<i32>>(self, v: T) -> Self
Sets the value of skipped_profiles.
§Example
ⓘ
let x = ListProfilesResponse::new().set_skipped_profiles(42);Trait Implementations§
Source§impl Clone for ListProfilesResponse
impl Clone for ListProfilesResponse
Source§fn clone(&self) -> ListProfilesResponse
fn clone(&self) -> ListProfilesResponse
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 ListProfilesResponse
impl Debug for ListProfilesResponse
Source§impl Default for ListProfilesResponse
impl Default for ListProfilesResponse
Source§fn default() -> ListProfilesResponse
fn default() -> ListProfilesResponse
Returns the “default value” for a type. Read more
Source§impl Message for ListProfilesResponse
impl Message for ListProfilesResponse
Source§impl PartialEq for ListProfilesResponse
impl PartialEq for ListProfilesResponse
impl StructuralPartialEq for ListProfilesResponse
Auto Trait Implementations§
impl Freeze for ListProfilesResponse
impl RefUnwindSafe for ListProfilesResponse
impl Send for ListProfilesResponse
impl Sync for ListProfilesResponse
impl Unpin for ListProfilesResponse
impl UnwindSafe for ListProfilesResponse
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