pub struct Source {
pub name: String,
pub start_sequence: Option<u64>,
pub start_time: Option<OffsetDateTime>,
pub filter_subject: Option<String>,
pub external: Option<External>,
pub domain: Option<String>,
pub subject_transforms: Vec<SubjectTransform>,
pub consumer: Option<StreamConsumerSource>,
}Available on crate feature
jetstream only.Fields§
§name: StringName of the stream source.
start_sequence: Option<u64>Optional source start sequence.
start_time: Option<OffsetDateTime>Optional source start time.
filter_subject: Option<String>Optional additional filter subject.
external: Option<External>Optional config for sourcing streams from another prefix, used for cross-account.
domain: Option<String>Optional config to set a domain, if source is residing in different one.
subject_transforms: Vec<SubjectTransform>Available on crate feature
server_2_10 only.Subject transforms for Stream.
consumer: Option<StreamConsumerSource>Available on crate feature
server_2_14 only.Pre-created durable consumer to use for sourcing instead of the
auto-managed ephemeral one. Required for full control over the
consumer’s lifecycle (security, advanced delivery/replay options)
when sourcing/mirroring from WorkQueue/Interest streams. Both
name and deliver_subject must be non-empty and valid; the
server rejects the config otherwise. See ADR-60.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Source
impl<'de> Deserialize<'de> for Source
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
impl Eq for Source
impl StructuralPartialEq for Source
Auto Trait Implementations§
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnsafeUnpin for Source
impl UnwindSafe for Source
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