#[non_exhaustive]pub struct ListSharedResourceSubscriptionsRequest {
pub resource: String,
pub include_deleted_subscriptions: bool,
pub page_size: i32,
pub page_token: String,
/* private fields */
}Expand description
Message for listing subscriptions of a shared resource.
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.resource: StringRequired. Resource name of the requested target. This resource may be either a Listing or a DataExchange. e.g. projects/123/locations/us/dataExchanges/456 OR e.g. projects/123/locations/us/dataExchanges/456/listings/789
include_deleted_subscriptions: boolIf selected, includes deleted subscriptions in the response (up to 63 days after deletion).
page_size: i32The maximum number of results to return in a single response page.
page_token: StringPage token, returned by a previous call.
Implementations§
pub fn new() -> Self
Sourcepub fn set_resource<T: Into<String>>(self, v: T) -> Self
pub fn set_resource<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_include_deleted_subscriptions<T: Into<bool>>(self, v: T) -> Self
pub fn set_include_deleted_subscriptions<T: Into<bool>>(self, v: T) -> Self
Sets the value of include_deleted_subscriptions.
§Example
ⓘ
let x = ListSharedResourceSubscriptionsRequest::new().set_include_deleted_subscriptions(true);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_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 = ListSharedResourceSubscriptionsRequest::new().set_page_token("example");Trait Implementations§
Source§fn clone(&self) -> ListSharedResourceSubscriptionsRequest
fn clone(&self) -> ListSharedResourceSubscriptionsRequest
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§fn default() -> ListSharedResourceSubscriptionsRequest
fn default() -> ListSharedResourceSubscriptionsRequest
Returns the “default value” for a type. Read more
Source§fn eq(&self, other: &ListSharedResourceSubscriptionsRequest) -> bool
fn eq(&self, other: &ListSharedResourceSubscriptionsRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Auto Trait Implementations§
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