#[non_exhaustive]pub struct CreateTopicRequest {
pub parent: String,
pub topic_id: String,
pub topic: Option<Topic>,
/* private fields */
}Expand description
Request for CreateTopic.
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 cluster in which to create the topic.
Structured like
projects/{project}/locations/{location}/clusters/{cluster}.
topic_id: StringRequired. The ID to use for the topic, which will become the final component of the topic’s name.
This value is structured like: my-topic-name.
topic: Option<Topic>Required. Configuration of the topic to create. Its name field is
ignored.
Implementations§
Source§impl CreateTopicRequest
impl CreateTopicRequest
Trait Implementations§
Source§impl Clone for CreateTopicRequest
impl Clone for CreateTopicRequest
Source§fn clone(&self) -> CreateTopicRequest
fn clone(&self) -> CreateTopicRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateTopicRequest
impl Debug for CreateTopicRequest
Source§impl Default for CreateTopicRequest
impl Default for CreateTopicRequest
Source§fn default() -> CreateTopicRequest
fn default() -> CreateTopicRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateTopicRequest
impl Message for CreateTopicRequest
Source§impl PartialEq for CreateTopicRequest
impl PartialEq for CreateTopicRequest
impl StructuralPartialEq for CreateTopicRequest
Auto Trait Implementations§
impl Freeze for CreateTopicRequest
impl RefUnwindSafe for CreateTopicRequest
impl Send for CreateTopicRequest
impl Sync for CreateTopicRequest
impl Unpin for CreateTopicRequest
impl UnwindSafe for CreateTopicRequest
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