pub struct ConsumerTaskConfig {
pub user_agent: String,
pub compression: bool,
pub zstd_dictionary_location: String,
pub jetstream_hostname: String,
pub collections: Vec<String>,
pub dids: Vec<String>,
pub max_message_size_bytes: Option<u64>,
pub cursor: Option<i64>,
pub require_hello: bool,
}
Expand description
Configuration for the Jetstream consumer task
Fields§
§user_agent: String
User-Agent header value for WebSocket connections
compression: bool
Enable Zstandard compression for messages
zstd_dictionary_location: String
Path to Zstandard dictionary file (required if compression is enabled)
jetstream_hostname: String
Hostname of the Jetstream instance to connect to
collections: Vec<String>
AT Protocol collections to subscribe to (empty for all)
dids: Vec<String>
DIDs to filter events for (empty for all)
max_message_size_bytes: Option<u64>
Maximum message size in bytes (None for unlimited)
cursor: Option<i64>
Optional cursor position to start streaming from
require_hello: bool
Whether to require a hello message before receiving events
Trait Implementations§
Source§impl Clone for ConsumerTaskConfig
impl Clone for ConsumerTaskConfig
Source§fn clone(&self) -> ConsumerTaskConfig
fn clone(&self) -> ConsumerTaskConfig
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 moreAuto Trait Implementations§
impl Freeze for ConsumerTaskConfig
impl RefUnwindSafe for ConsumerTaskConfig
impl Send for ConsumerTaskConfig
impl Sync for ConsumerTaskConfig
impl Unpin for ConsumerTaskConfig
impl UnwindSafe for ConsumerTaskConfig
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