pub struct HttpOutboundAdapterSpec(/* private fields */);Implementations§
Source§impl HttpOutboundAdapterSpec
impl HttpOutboundAdapterSpec
Sourcepub fn new(
url: &str,
method: Option<&str>,
id: Option<&str>,
use_out_msg: bool,
) -> Self
pub fn new( url: &str, method: Option<&str>, id: Option<&str>, use_out_msg: bool, ) -> Self
Programmatic constructor.
url must include the scheme (http:// or https://). It is not
validated here — validation happens when the spec is constructed
via the YAML parser, or when the adapter is built. Callers using
this constructor directly are expected to provide a parseable URL.
Sourcepub fn with_from(self, from: impl Into<String>) -> Self
pub fn with_from(self, from: impl Into<String>) -> Self
Set the inbound channel name the runtime will subscribe this
adapter to. Returns self for chaining; intended for fluent test
fixture construction.
Sourcepub fn with_to(self, to: impl Into<String>) -> Self
pub fn with_to(self, to: impl Into<String>) -> Self
Set the outbound channel name for the post-dispatch exchange.
pub fn with_id( id: &str, url: &str, method: Option<&str>, use_out_msg: bool, ) -> Self
pub fn id(&self) -> Option<&str>
pub fn method(&self) -> Option<&str>
pub fn use_out_msg(&self) -> bool
Trait Implementations§
Source§impl Clone for HttpOutboundAdapterSpec
impl Clone for HttpOutboundAdapterSpec
Source§fn clone(&self) -> HttpOutboundAdapterSpec
fn clone(&self) -> HttpOutboundAdapterSpec
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 HttpOutboundAdapterSpec
impl RefUnwindSafe for HttpOutboundAdapterSpec
impl Send for HttpOutboundAdapterSpec
impl Sync for HttpOutboundAdapterSpec
impl Unpin for HttpOutboundAdapterSpec
impl UnsafeUnpin for HttpOutboundAdapterSpec
impl UnwindSafe for HttpOutboundAdapterSpec
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