pub enum RedisSourceType {
List {
key: String,
},
Stream {
key: String,
group: Option<String>,
consumer: Option<String>,
count: Option<usize>,
},
Keys {
pattern: String,
},
}Expand description
The type of Redis data structure to read from.
Variants§
List
Read all elements from a Redis list via LRANGE.
Stream
Read entries from a Redis stream via XRANGE (or XREAD / XREADGROUP
for the consumer-group convenience path on fetch_all).
Fields
§
group: Option<String>Optional consumer group name. When set, fetch_all
uses XREADGROUP. Streaming via stream_pages
always uses XRANGE (consumer-group semantics are incompatible
with the page-then-write streaming contract).
§
count: Option<usize>Maximum number of entries to read per call. Used by
fetch_all’s XREAD / XREADGROUP
path; ignored by streaming, which uses
RedisSourceConfig::batch_size as both the per-page count and
the XRANGE COUNT hint.
Keys
Scan for keys matching a pattern, then MGET each batch.
Trait Implementations§
Source§impl Clone for RedisSourceType
impl Clone for RedisSourceType
Source§fn clone(&self) -> RedisSourceType
fn clone(&self) -> RedisSourceType
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 RedisSourceType
impl Debug for RedisSourceType
Source§impl<'de> Deserialize<'de> for RedisSourceType
impl<'de> Deserialize<'de> for RedisSourceType
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 JsonSchema for RedisSourceType
impl JsonSchema for RedisSourceType
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for RedisSourceType
impl RefUnwindSafe for RedisSourceType
impl Send for RedisSourceType
impl Sync for RedisSourceType
impl Unpin for RedisSourceType
impl UnsafeUnpin for RedisSourceType
impl UnwindSafe for RedisSourceType
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