pub enum TriggerType {
ProcessWrites,
ProcessScheduledCall,
ProcessRequest,
}Expand description
Closed set of supported trigger types. Manifests are rejected if any trigger identifier is outside this set.
Serde goes through TryFrom<String> / Into<String>, so rename_all
would be a no-op.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for TriggerType
impl Clone for TriggerType
Source§fn clone(&self) -> TriggerType
fn clone(&self) -> TriggerType
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 moreimpl Copy for TriggerType
Source§impl Debug for TriggerType
impl Debug for TriggerType
Source§impl<'de> Deserialize<'de> for TriggerType
impl<'de> Deserialize<'de> for TriggerType
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TriggerType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TriggerType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for TriggerType
impl Display for TriggerType
impl Eq for TriggerType
Source§impl FromStr for TriggerType
impl FromStr for TriggerType
Source§type Err = SchemaError
type Err = SchemaError
The associated error which can be returned from parsing.
Source§fn from_str(s: &str) -> Result<TriggerType, <TriggerType as FromStr>::Err>
fn from_str(s: &str) -> Result<TriggerType, <TriggerType as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for TriggerType
impl Hash for TriggerType
Source§impl PartialEq for TriggerType
impl PartialEq for TriggerType
Source§fn eq(&self, other: &TriggerType) -> bool
fn eq(&self, other: &TriggerType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TriggerType
impl Serialize for TriggerType
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for TriggerType
Source§impl TryFrom<String> for TriggerType
impl TryFrom<String> for TriggerType
Source§type Error = SchemaError
type Error = SchemaError
The type returned in the event of a conversion error.
Source§fn try_from(
value: String,
) -> Result<TriggerType, <TriggerType as TryFrom<String>>::Error>
fn try_from( value: String, ) -> Result<TriggerType, <TriggerType as TryFrom<String>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for TriggerType
impl RefUnwindSafe for TriggerType
impl Send for TriggerType
impl Sync for TriggerType
impl Unpin for TriggerType
impl UnsafeUnpin for TriggerType
impl UnwindSafe for TriggerType
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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<I> IntoResettable<String> for I
impl<I> IntoResettable<String> for I
Source§fn into_resettable(self) -> Resettable<String>
fn into_resettable(self) -> Resettable<String>
Convert to the intended resettable type