pub struct CallAsyncAPIDefinitionBuilder { /* private fields */ }Expand description
Builder for constructing an AsyncAPI call task.
Implementations§
Source§impl CallAsyncAPIDefinitionBuilder
impl CallAsyncAPIDefinitionBuilder
pub fn new(document_url: &str) -> Self
Sourcepub fn with_channel(&mut self, channel: &str) -> &mut Self
pub fn with_channel(&mut self, channel: &str) -> &mut Self
Sets the AsyncAPI channel name.
Sourcepub fn with_operation(&mut self, operation: &str) -> &mut Self
pub fn with_operation(&mut self, operation: &str) -> &mut Self
Sets the AsyncAPI operation.
Sourcepub fn with_protocol(&mut self, protocol: &str) -> &mut Self
pub fn with_protocol(&mut self, protocol: &str) -> &mut Self
Sets the AsyncAPI protocol (e.g., “kafka”, “mqtt”).
Auto Trait Implementations§
impl Freeze for CallAsyncAPIDefinitionBuilder
impl RefUnwindSafe for CallAsyncAPIDefinitionBuilder
impl Send for CallAsyncAPIDefinitionBuilder
impl Sync for CallAsyncAPIDefinitionBuilder
impl Unpin for CallAsyncAPIDefinitionBuilder
impl UnsafeUnpin for CallAsyncAPIDefinitionBuilder
impl UnwindSafe for CallAsyncAPIDefinitionBuilder
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