#[non_exhaustive]pub struct CreateListingRequest {
pub parent: String,
pub listing_id: String,
pub listing: Option<Listing>,
/* private fields */
}Expand description
Message for creating a listing.
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.parent: StringRequired. The parent resource path of the listing.
e.g. projects/myproject/locations/us/dataExchanges/123.
listing_id: StringRequired. The ID of the listing to create. Must contain only Unicode letters, numbers (0-9), underscores (_). Max length: 100 bytes.
listing: Option<Listing>Required. The listing to create.
Implementations§
Source§impl CreateListingRequest
impl CreateListingRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
Sourcepub fn set_listing_id<T: Into<String>>(self, v: T) -> Self
pub fn set_listing_id<T: Into<String>>(self, v: T) -> Self
Sets the value of listing_id.
Sourcepub fn set_listing<T>(self, v: T) -> Self
pub fn set_listing<T>(self, v: T) -> Self
Sets the value of listing.
Trait Implementations§
Source§impl Clone for CreateListingRequest
impl Clone for CreateListingRequest
Source§fn clone(&self) -> CreateListingRequest
fn clone(&self) -> CreateListingRequest
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 CreateListingRequest
impl Debug for CreateListingRequest
Source§impl Default for CreateListingRequest
impl Default for CreateListingRequest
Source§fn default() -> CreateListingRequest
fn default() -> CreateListingRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateListingRequest
impl Message for CreateListingRequest
Source§impl PartialEq for CreateListingRequest
impl PartialEq for CreateListingRequest
impl StructuralPartialEq for CreateListingRequest
Auto Trait Implementations§
impl !Freeze for CreateListingRequest
impl RefUnwindSafe for CreateListingRequest
impl Send for CreateListingRequest
impl Sync for CreateListingRequest
impl Unpin for CreateListingRequest
impl UnwindSafe for CreateListingRequest
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