pub enum ReviewRouteConfig {
Single(ChannelRouteConfig),
Multiple(Vec<ChannelRouteConfig>),
}Expand description
One-or-many channel route config (v0.10.0 multi-channel routing).
Accepts either a single channel object or an array of channels:
review: { type: terminal } # single
review: # multiple
- { type: terminal }
- { type: webhook, endpoint: /tmp/review }Variants§
Single(ChannelRouteConfig)
A single channel (backward-compatible default).
Multiple(Vec<ChannelRouteConfig>)
Multiple channels — dispatched via MultiReviewChannel.
Implementations§
Trait Implementations§
Source§impl Clone for ReviewRouteConfig
impl Clone for ReviewRouteConfig
Source§fn clone(&self) -> ReviewRouteConfig
fn clone(&self) -> ReviewRouteConfig
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 ReviewRouteConfig
impl Debug for ReviewRouteConfig
Source§impl Default for ReviewRouteConfig
impl Default for ReviewRouteConfig
Source§impl<'de> Deserialize<'de> for ReviewRouteConfig
impl<'de> Deserialize<'de> for ReviewRouteConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ReviewRouteConfig
impl RefUnwindSafe for ReviewRouteConfig
impl Send for ReviewRouteConfig
impl Sync for ReviewRouteConfig
impl Unpin for ReviewRouteConfig
impl UnsafeUnpin for ReviewRouteConfig
impl UnwindSafe for ReviewRouteConfig
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