pub struct StreamSource {
pub name: String,
pub start_seq: Option<u64>,
pub start_time: Option<OffsetDateTime>,
pub filter_subject: Option<String>,
}Expand description
Stream source configuration.
Fields§
§name: StringThe source stream name.
start_seq: Option<u64>Optional starting sequence.
start_time: Option<OffsetDateTime>Optional starting time.
filter_subject: Option<String>Optional filter subject.
Implementations§
Source§impl StreamSource
impl StreamSource
Sourcepub fn start_time(self, time: OffsetDateTime) -> Self
pub fn start_time(self, time: OffsetDateTime) -> Self
Set the starting time.
Sourcepub fn filter_subject(self, subject: impl Into<String>) -> Self
pub fn filter_subject(self, subject: impl Into<String>) -> Self
Set the filter subject.
Trait Implementations§
Source§impl Clone for StreamSource
impl Clone for StreamSource
Source§fn clone(&self) -> StreamSource
fn clone(&self) -> StreamSource
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 StreamSource
impl Debug for StreamSource
Source§impl From<StreamSource> for Source
impl From<StreamSource> for Source
Source§fn from(source: StreamSource) -> Self
fn from(source: StreamSource) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StreamSource
impl RefUnwindSafe for StreamSource
impl Send for StreamSource
impl Sync for StreamSource
impl Unpin for StreamSource
impl UnwindSafe for StreamSource
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