pub struct DirectConfig {
pub name: String,
}Expand description
Configuration for Direct endpoints parsed from URIs.
URI format: direct:name
Example: direct:foo creates an endpoint named “foo”
Fields§
§name: StringEndpoint name (path portion).
Implementations§
Source§impl DirectConfig
impl DirectConfig
Sourcepub fn parse_uri_components(parts: UriComponents) -> Result<Self, CamelError>
pub fn parse_uri_components(parts: UriComponents) -> Result<Self, CamelError>
Parse URI components into this config.
Trait Implementations§
Source§impl Clone for DirectConfig
impl Clone for DirectConfig
Source§fn clone(&self) -> DirectConfig
fn clone(&self) -> DirectConfig
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 DirectConfig
impl Debug for DirectConfig
Source§impl UriConfig for DirectConfig
impl UriConfig for DirectConfig
Source§fn scheme() -> &'static str
fn scheme() -> &'static str
Returns the URI scheme this config handles (e.g., “timer”, “http”).
Source§fn from_uri(uri: &str) -> Result<Self, CamelError>
fn from_uri(uri: &str) -> Result<Self, CamelError>
Parse a URI string into this configuration.
Source§fn from_components(parts: UriComponents) -> Result<Self, CamelError>
fn from_components(parts: UriComponents) -> Result<Self, CamelError>
Parse already-extracted URI components into this configuration.
Source§fn validate(self) -> Result<Self, CamelError>
fn validate(self) -> Result<Self, CamelError>
Override to add validation logic after parsing.
Auto Trait Implementations§
impl Freeze for DirectConfig
impl RefUnwindSafe for DirectConfig
impl Send for DirectConfig
impl Sync for DirectConfig
impl Unpin for DirectConfig
impl UnsafeUnpin for DirectConfig
impl UnwindSafe for DirectConfig
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