pub struct S3Attributes {
pub endpoint: String,
pub access_key: String,
pub secret_key: String,
pub bucket: String,
pub object_prefix: String,
pub compression: String,
pub file_type: String,
pub max_retry: i32,
pub retry_interval_sec: i32,
pub use_ssl: Option<bool>,
}Expand description
Configuration for delivering stream batches to an S3-compatible object store.
Fields§
§endpoint: StringS3 service endpoint (e.g. s3.amazonaws.com).
access_key: StringAccess key used to authenticate with the S3 endpoint.
secret_key: StringSecret key used to authenticate with the S3 endpoint.
bucket: StringTarget bucket name.
object_prefix: StringKey prefix prepended to each written object.
compression: StringCompression applied to written objects (e.g. none, gzip).
file_type: StringFile format/extension for written objects (e.g. .json).
max_retry: i32Maximum number of retry attempts for a failed write.
retry_interval_sec: i32Seconds to wait between retry attempts.
use_ssl: Option<bool>Whether to use TLS when connecting to the endpoint.
Trait Implementations§
Source§impl Clone for S3Attributes
impl Clone for S3Attributes
Source§fn clone(&self) -> S3Attributes
fn clone(&self) -> S3Attributes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 S3Attributes
impl Debug for S3Attributes
Source§impl<'de> Deserialize<'de> for S3Attributes
impl<'de> Deserialize<'de> for S3Attributes
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
Auto Trait Implementations§
impl Freeze for S3Attributes
impl RefUnwindSafe for S3Attributes
impl Send for S3Attributes
impl Sync for S3Attributes
impl Unpin for S3Attributes
impl UnsafeUnpin for S3Attributes
impl UnwindSafe for S3Attributes
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