pub struct Topic {
pub name: Option<String>,
pub partition_config: Option<PartitionConfig>,
pub reservation_config: Option<ReservationConfig>,
pub retention_config: Option<RetentionConfig>,
}Expand description
Metadata about a topic resource.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- projects locations topics create admin (request|response)
- projects locations topics get admin (response)
- projects locations topics patch admin (request|response)
Fields§
§name: Option<String>The name of the topic. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}
partition_config: Option<PartitionConfig>The settings for this topic’s partitions.
reservation_config: Option<ReservationConfig>The settings for this topic’s Reservation usage.
retention_config: Option<RetentionConfig>The settings for this topic’s message retention.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Topic
impl<'de> Deserialize<'de> for Topic
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl RequestValue for Topic
impl ResponseResult for Topic
Auto Trait Implementations§
impl Freeze for Topic
impl RefUnwindSafe for Topic
impl Send for Topic
impl Sync for Topic
impl Unpin for Topic
impl UnwindSafe for Topic
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