#[non_exhaustive]pub struct ListDataProductsResponse {
pub data_products: Vec<DataProduct>,
pub next_page_token: String,
pub unreachable: Vec<String>,
/* private fields */
}Expand description
Response message for listing data products.
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.data_products: Vec<DataProduct>The data products for the requested filter criteria.
next_page_token: StringA token, which can be sent as page_token to retrieve the next page.
If this field is empty, then there are no subsequent pages.
unreachable: Vec<String>Unordered list. Locations that the service couldn’t reach.
Implementations§
Source§impl ListDataProductsResponse
impl ListDataProductsResponse
pub fn new() -> Self
Sourcepub fn set_data_products<T, V>(self, v: T) -> Self
pub fn set_data_products<T, V>(self, v: T) -> Self
Sets the value of data_products.
§Example
ⓘ
use google_cloud_dataplex_v1::model::DataProduct;
let x = ListDataProductsResponse::new()
.set_data_products([
DataProduct::default()/* use setters */,
DataProduct::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 = ListDataProductsResponse::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 = ListDataProductsResponse::new().set_unreachable(["a", "b", "c"]);Trait Implementations§
Source§impl Clone for ListDataProductsResponse
impl Clone for ListDataProductsResponse
Source§fn clone(&self) -> ListDataProductsResponse
fn clone(&self) -> ListDataProductsResponse
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 ListDataProductsResponse
impl Debug for ListDataProductsResponse
Source§impl Default for ListDataProductsResponse
impl Default for ListDataProductsResponse
Source§fn default() -> ListDataProductsResponse
fn default() -> ListDataProductsResponse
Returns the “default value” for a type. Read more
Source§impl Message for ListDataProductsResponse
impl Message for ListDataProductsResponse
Source§impl PartialEq for ListDataProductsResponse
impl PartialEq for ListDataProductsResponse
impl StructuralPartialEq for ListDataProductsResponse
Auto Trait Implementations§
impl Freeze for ListDataProductsResponse
impl RefUnwindSafe for ListDataProductsResponse
impl Send for ListDataProductsResponse
impl Sync for ListDataProductsResponse
impl Unpin for ListDataProductsResponse
impl UnsafeUnpin for ListDataProductsResponse
impl UnwindSafe for ListDataProductsResponse
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