Struct google_pubsub1::api::AvroConfig
source · pub struct AvroConfig {
pub write_metadata: Option<bool>,
}
Expand description
Configuration for writing message data in Avro format. Message payloads and metadata will be written to files as an Avro binary.
This type is not used in any activity, and only used as part of another schema.
Fields§
§write_metadata: Option<bool>
Optional. When true, write the subscription name, message_id, publish_time, attributes, and ordering_key as additional fields in the output. The subscription name, message_id, and publish_time fields are put in their own fields while all other message properties other than data (for example, an ordering_key, if present) are added as entries in the attributes map.
Trait Implementations§
source§impl Clone for AvroConfig
impl Clone for AvroConfig
source§fn clone(&self) -> AvroConfig
fn clone(&self) -> AvroConfig
Returns a copy 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 AvroConfig
impl Debug for AvroConfig
source§impl Default for AvroConfig
impl Default for AvroConfig
source§fn default() -> AvroConfig
fn default() -> AvroConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AvroConfig
impl<'de> Deserialize<'de> for AvroConfig
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
source§impl Serialize for AvroConfig
impl Serialize for AvroConfig
impl Part for AvroConfig
Auto Trait Implementations§
impl RefUnwindSafe for AvroConfig
impl Send for AvroConfig
impl Sync for AvroConfig
impl Unpin for AvroConfig
impl UnwindSafe for AvroConfig
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