pub enum SmsKitProvider {
Twilio,
Plivo,
Development,
}Expand description
Supported SMSKit providers
Plivo requires the smskit feature flag and its sms-plivo SDK crate.
When selected without the feature enabled, send_sms_with_fallback
returns a descriptive error at runtime.
Variants§
Trait Implementations§
Source§impl Clone for SmsKitProvider
impl Clone for SmsKitProvider
Source§impl Debug for SmsKitProvider
impl Debug for SmsKitProvider
Source§impl<'de> Deserialize<'de> for SmsKitProvider
Manual Deserialize (rather than #[derive]) so a persisted AwsSns
selection – from before the sms-aws-sns backend was removed – fails
with an actionable migration message instead of serde’s generic
unknown-variant error. See SmsKitProviderConfig’s impl for the shadow
enum this mirrors and the mutation tests in this module.
impl<'de> Deserialize<'de> for SmsKitProvider
Manual Deserialize (rather than #[derive]) so a persisted AwsSns
selection – from before the sms-aws-sns backend was removed – fails
with an actionable migration message instead of serde’s generic
unknown-variant error. See SmsKitProviderConfig’s impl for the shadow
enum this mirrors and the mutation tests in this module.
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 SmsKitProvider
impl RefUnwindSafe for SmsKitProvider
impl Send for SmsKitProvider
impl Sync for SmsKitProvider
impl Unpin for SmsKitProvider
impl UnsafeUnpin for SmsKitProvider
impl UnwindSafe for SmsKitProvider
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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 more