pub struct FeedDescriptorBuilder { /* private fields */ }Expand description
Builder for a FeedDescriptor.
Implementations§
Source§impl FeedDescriptorBuilder
impl FeedDescriptorBuilder
pub fn new(name: impl Into<String>, schema: WireSchema) -> Self
Sourcepub fn transport(self, t: TransportTag) -> Self
pub fn transport(self, t: TransportTag) -> Self
Add a single transport. Duplicate calls with the same tag are idempotent.
pub fn transports<I: IntoIterator<Item = TransportTag>>(self, ts: I) -> Self
pub fn format(self, f: FormatPreference) -> Self
pub fn formats<I: IntoIterator<Item = FormatPreference>>(self, fs: I) -> Self
pub fn capabilities(self, c: Capabilities) -> Self
pub fn event_time_key(self, k: impl Into<String>) -> Self
pub fn tag(self, t: impl Into<String>) -> Self
pub fn description(self, d: impl Into<String>) -> Self
Sourcepub fn build(self) -> Result<FeedDescriptor, ValidationError>
pub fn build(self) -> Result<FeedDescriptor, ValidationError>
Validate and produce the descriptor.
Trait Implementations§
Source§impl Clone for FeedDescriptorBuilder
impl Clone for FeedDescriptorBuilder
Source§fn clone(&self) -> FeedDescriptorBuilder
fn clone(&self) -> FeedDescriptorBuilder
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 moreAuto Trait Implementations§
impl Freeze for FeedDescriptorBuilder
impl RefUnwindSafe for FeedDescriptorBuilder
impl Send for FeedDescriptorBuilder
impl Sync for FeedDescriptorBuilder
impl Unpin for FeedDescriptorBuilder
impl UnsafeUnpin for FeedDescriptorBuilder
impl UnwindSafe for FeedDescriptorBuilder
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