pub struct SourceRoute {
pub topic: String,
pub dispatch: RouteDispatchPolicy,
pub schema: RouteSchemaPolicy,
}Expand description
Complete source-side routing definition derived from ProducerConfig.
Fields§
§topic: StringDanube topic produced by this route.
dispatch: RouteDispatchPolicyDispatch policy used when creating the producer.
schema: RouteSchemaPolicySchema configuration applied when publishing records.
Implementations§
Source§impl SourceRoute
impl SourceRoute
Sourcepub fn new(
topic: impl Into<String>,
dispatch: RouteDispatchPolicy,
schema: RouteSchemaPolicy,
) -> Self
pub fn new( topic: impl Into<String>, dispatch: RouteDispatchPolicy, schema: RouteSchemaPolicy, ) -> Self
Create a source route from its topic, dispatch, and schema policy.
Trait Implementations§
Source§impl Clone for SourceRoute
impl Clone for SourceRoute
Source§fn clone(&self) -> SourceRoute
fn clone(&self) -> SourceRoute
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 SourceRoute
impl Debug for SourceRoute
Source§impl From<ProducerConfig> for SourceRoute
impl From<ProducerConfig> for SourceRoute
Source§fn from(config: ProducerConfig) -> Self
fn from(config: ProducerConfig) -> Self
Converts to this type from the input type.
Source§impl From<SourceRoute> for ProducerConfig
impl From<SourceRoute> for ProducerConfig
Source§fn from(route: SourceRoute) -> Self
fn from(route: SourceRoute) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SourceRoute
impl RefUnwindSafe for SourceRoute
impl Send for SourceRoute
impl Sync for SourceRoute
impl Unpin for SourceRoute
impl UnsafeUnpin for SourceRoute
impl UnwindSafe for SourceRoute
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request