#[non_exhaustive]pub struct AvroConfig {
pub write_metadata: bool,
pub use_topic_schema: bool,
/* private fields */
}Expand description
Configuration for writing message data in Avro format. Message payloads and metadata will be written to files as an Avro binary.
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.write_metadata: boolOptional. 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.
use_topic_schema: boolOptional. When true, the output Cloud Storage file will be serialized using the topic schema, if it exists.
Implementations§
Source§impl AvroConfig
impl AvroConfig
pub fn new() -> Self
Sourcepub fn set_write_metadata<T: Into<bool>>(self, v: T) -> Self
pub fn set_write_metadata<T: Into<bool>>(self, v: T) -> Self
Sourcepub fn set_use_topic_schema<T: Into<bool>>(self, v: T) -> Self
pub fn set_use_topic_schema<T: Into<bool>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for AvroConfig
impl Clone for AvroConfig
Source§fn clone(&self) -> AvroConfig
fn clone(&self) -> AvroConfig
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 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 PartialEq for AvroConfig
impl PartialEq for AvroConfig
impl StructuralPartialEq for AvroConfig
Auto Trait Implementations§
impl Freeze for AvroConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request