pub enum ChannelTargetType {
Amqp,
Webhook,
Kafka,
Mqtt,
MySql,
Nats,
Postgres,
Pulsar,
Redis,
}Expand description
The ChannelTargetType enum represents the different types of channel Target
used in the notification system.
It includes:
Amqp: Represents an AMQP 0-9-1 target for sending notifications to a broker.Webhook: Sends notifications via HTTP POST requests.Kafka: Publishes notifications to a Kafka topic.Mqtt: Publishes notifications via MQTT protocol.MySql: Writes notifications to a MySQL/TiDB table.Nats: Publishes notifications to a NATS subject.Postgres: Writes notifications to a PostgreSQL table (namespace or access format).Pulsar: Publishes notifications to a Pulsar topic.Redis: Publishes notifications to a Redis channel (pub/sub).
Each variant has an associated string representation that can be used for serialization
or logging purposes.
The as_str method returns the string representation of the target type,
and the Display implementation allows for easy formatting of the target type as a string.
Example usage:
use rustfs_targets::target::ChannelTargetType;
let target_type = ChannelTargetType::Webhook;
assert_eq!(target_type.as_str(), "webhook");
println!("Target type: {}", target_type);Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChannelTargetType
impl RefUnwindSafe for ChannelTargetType
impl Send for ChannelTargetType
impl Sync for ChannelTargetType
impl Unpin for ChannelTargetType
impl UnsafeUnpin for ChannelTargetType
impl UnwindSafe for ChannelTargetType
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request