Struct redpanda_transform_sdk::WriteOptions
source · pub struct WriteOptions<'a> {
pub topic: Option<&'a str>,
}Expand description
Allows you to customize a RecordWriter’s write.
For example, use WriteOptions to customize the output topic to write to.
Fields§
§topic: Option<&'a str>Implementations§
source§impl<'a> WriteOptions<'a>
impl<'a> WriteOptions<'a>
sourcepub fn new(topic: Option<&'a str>) -> WriteOptions<'a>
pub fn new(topic: Option<&'a str>) -> WriteOptions<'a>
Create a new options struct with the Record’s destination to an optional topic.
If topic is None, the record will be written to the first
output topic listed in the configuration.
sourcepub fn to_topic(topic: &'a str) -> WriteOptions<'a>
pub fn to_topic(topic: &'a str) -> WriteOptions<'a>
Create a new options struct with the Record’s destination to topic.
Trait Implementations§
source§impl<'a> Clone for WriteOptions<'a>
impl<'a> Clone for WriteOptions<'a>
source§fn clone(&self) -> WriteOptions<'a>
fn clone(&self) -> WriteOptions<'a>
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<'a> Debug for WriteOptions<'a>
impl<'a> Debug for WriteOptions<'a>
source§impl<'a> Default for WriteOptions<'a>
impl<'a> Default for WriteOptions<'a>
source§fn default() -> WriteOptions<'a>
fn default() -> WriteOptions<'a>
Returns the “default value” for a type. Read more
source§impl<'a> PartialEq for WriteOptions<'a>
impl<'a> PartialEq for WriteOptions<'a>
source§fn eq(&self, other: &WriteOptions<'a>) -> bool
fn eq(&self, other: &WriteOptions<'a>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<'a> Eq for WriteOptions<'a>
impl<'a> StructuralPartialEq for WriteOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for WriteOptions<'a>
impl<'a> RefUnwindSafe for WriteOptions<'a>
impl<'a> Send for WriteOptions<'a>
impl<'a> Sync for WriteOptions<'a>
impl<'a> Unpin for WriteOptions<'a>
impl<'a> UnwindSafe for WriteOptions<'a>
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