pub enum LevelAlert {
One,
Two,
Three,
}
Expand description
Enumeration which refers to the level of alert
Variants§
Implementations§
Source§impl LevelAlert
impl LevelAlert
fn __type_name() -> Cow<'static, str>
fn __create_type_info(registry: &mut Registry) -> String
Trait Implementations§
Source§impl Clone for LevelAlert
impl Clone for LevelAlert
Source§fn clone(&self) -> LevelAlert
fn clone(&self) -> LevelAlert
Returns a copy 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 LevelAlert
impl Debug for LevelAlert
Source§impl<'de> Deserialize<'de> for LevelAlert
impl<'de> Deserialize<'de> for LevelAlert
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
Source§impl EnumType for LevelAlert
impl EnumType for LevelAlert
Source§fn items() -> &'static [EnumItem<LevelAlert>]
fn items() -> &'static [EnumItem<LevelAlert>]
Get a list of possible variants of the enum and their values.
Source§impl From<LevelAlert> for Value
impl From<LevelAlert> for Value
Source§fn from(value: LevelAlert) -> Value
fn from(value: LevelAlert) -> Value
Converts to this type from the input type.
Source§impl<'a> FromSql<'a> for LevelAlert
impl<'a> FromSql<'a> for LevelAlert
Source§fn from_sql(
_ty: &Type,
raw: &'a [u8],
) -> Result<LevelAlert, Box<dyn Error + Sync + Send>>
fn from_sql( _ty: &Type, raw: &'a [u8], ) -> Result<LevelAlert, Box<dyn Error + Sync + Send>>
Creates a new value of this type from a buffer of data of the specified
Postgres
Type
in its binary format. Read moreSource§fn accepts(ty: &Type) -> bool
fn accepts(ty: &Type) -> bool
Determines if a value of this type can be created from the specified
Postgres
Type
.Source§impl FromStr for LevelAlert
impl FromStr for LevelAlert
Source§impl InputType for LevelAlert
impl InputType for LevelAlert
Source§type RawValueType = LevelAlert
type RawValueType = LevelAlert
The raw type used for validator. Read more
Source§fn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
Source§fn parse(value: Option<Value>) -> InputValueResult<Self>
fn parse(value: Option<Value>) -> InputValueResult<Self>
Parse from
Value
. None represents undefined.Source§fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn as_raw_value(&self) -> Option<&Self::RawValueType>
Returns a reference to the raw value.
§fn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
Source§impl OutputType for LevelAlert
impl OutputType for LevelAlert
Source§fn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
Source§async fn resolve(
&self,
_: &ContextSelectionSet<'_>,
_field: &Positioned<Field>,
) -> ServerResult<Value>
async fn resolve( &self, _: &ContextSelectionSet<'_>, _field: &Positioned<Field>, ) -> ServerResult<Value>
Resolve an output value to
async_graphql::Value
.§fn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
§fn introspection_type_name(&self) -> Cow<'static, str>
fn introspection_type_name(&self) -> Cow<'static, str>
Introspection type name Read more
Source§impl PartialEq for LevelAlert
impl PartialEq for LevelAlert
Source§impl Serialize for LevelAlert
impl Serialize for LevelAlert
Source§impl ToSql for LevelAlert
impl ToSql for LevelAlert
Source§fn to_sql(
&self,
_ty: &Type,
out: &mut BytesMut,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>
fn to_sql( &self, _ty: &Type, out: &mut BytesMut, ) -> Result<IsNull, Box<dyn Error + Sync + Send>>
Converts the value of
self
into the binary format of the specified
Postgres Type
, appending it to out
. Read moreSource§fn accepts(ty: &Type) -> bool
fn accepts(ty: &Type) -> bool
Determines if a value of this type can be converted to the specified
Postgres
Type
.Source§fn to_sql_checked(
&self,
ty: &Type,
out: &mut BytesMut,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>
fn to_sql_checked( &self, ty: &Type, out: &mut BytesMut, ) -> Result<IsNull, Box<dyn Error + Sync + Send>>
An adaptor method used internally by Rust-Postgres. Read more
§fn encode_format(&self, _ty: &Type) -> Format
fn encode_format(&self, _ty: &Type) -> Format
Specify the encode format
impl Copy for LevelAlert
impl Eq for LevelAlert
impl StructuralPartialEq for LevelAlert
Auto Trait Implementations§
impl Freeze for LevelAlert
impl RefUnwindSafe for LevelAlert
impl Send for LevelAlert
impl Sync for LevelAlert
impl Unpin for LevelAlert
impl UnwindSafe for LevelAlert
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
§impl<T> BorrowToSql for Twhere
T: ToSql,
impl<T> BorrowToSql for Twhere
T: ToSql,
§fn borrow_to_sql(&self) -> &dyn ToSql
fn borrow_to_sql(&self) -> &dyn ToSql
Returns a reference to
self
as a ToSql
trait object.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more