#[non_exhaustive]pub struct ListPosturesResponse {
pub postures: Vec<Posture>,
pub next_page_token: String,
pub unreachable: Vec<String>,
/* private fields */
}Expand description
Message for response to listing Postures.
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.postures: Vec<Posture>The list of Posture.
next_page_token: StringA token identifying a page of results the server should return.
unreachable: Vec<String>Unreachable resources.
Implementations§
Source§impl ListPosturesResponse
impl ListPosturesResponse
pub fn new() -> Self
Sourcepub fn set_postures<T, V>(self, v: T) -> Self
pub fn set_postures<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 = ListPosturesResponse::new().set_next_page_token("example");Sourcepub fn set_unreachable<T, V>(self, v: T) -> Self
pub fn set_unreachable<T, V>(self, v: T) -> Self
Sets the value of unreachable.
§Example
ⓘ
let x = ListPosturesResponse::new().set_unreachable(["a", "b", "c"]);Trait Implementations§
Source§impl Clone for ListPosturesResponse
impl Clone for ListPosturesResponse
Source§fn clone(&self) -> ListPosturesResponse
fn clone(&self) -> ListPosturesResponse
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 ListPosturesResponse
impl Debug for ListPosturesResponse
Source§impl Default for ListPosturesResponse
impl Default for ListPosturesResponse
Source§fn default() -> ListPosturesResponse
fn default() -> ListPosturesResponse
Returns the “default value” for a type. Read more
Source§impl Message for ListPosturesResponse
impl Message for ListPosturesResponse
Source§impl PartialEq for ListPosturesResponse
impl PartialEq for ListPosturesResponse
impl StructuralPartialEq for ListPosturesResponse
Auto Trait Implementations§
impl Freeze for ListPosturesResponse
impl RefUnwindSafe for ListPosturesResponse
impl Send for ListPosturesResponse
impl Sync for ListPosturesResponse
impl Unpin for ListPosturesResponse
impl UnwindSafe for ListPosturesResponse
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