pub enum MovingActivity {
InVehicle,
Running,
Walking,
Still,
}
Expand description
Enumeration which refers to the kind of moving activity
Variants§
Implementations§
Source§impl MovingActivity
impl MovingActivity
fn __type_name() -> Cow<'static, str>
fn __create_type_info(registry: &mut Registry) -> String
Trait Implementations§
Source§impl Clone for MovingActivity
impl Clone for MovingActivity
Source§fn clone(&self) -> MovingActivity
fn clone(&self) -> MovingActivity
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 MovingActivity
impl Debug for MovingActivity
Source§impl<'de> Deserialize<'de> for MovingActivity
impl<'de> Deserialize<'de> for MovingActivity
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 Display for MovingActivity
impl Display for MovingActivity
Implement Display
trait for MovingActivity
since we have to use it on format! function
call.
Source§impl EnumType for MovingActivity
impl EnumType for MovingActivity
Source§fn items() -> &'static [EnumItem<MovingActivity>]
fn items() -> &'static [EnumItem<MovingActivity>]
Get a list of possible variants of the enum and their values.
Source§impl From<MovingActivity> for Value
impl From<MovingActivity> for Value
Source§fn from(value: MovingActivity) -> Value
fn from(value: MovingActivity) -> Value
Converts to this type from the input type.
Source§impl<'a> FromSql<'a> for MovingActivity
impl<'a> FromSql<'a> for MovingActivity
Source§fn from_sql(
_ty: &Type,
raw: &'a [u8],
) -> Result<MovingActivity, Box<dyn Error + Sync + Send>>
fn from_sql( _ty: &Type, raw: &'a [u8], ) -> Result<MovingActivity, 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 InputType for MovingActivity
impl InputType for MovingActivity
Source§type RawValueType = MovingActivity
type RawValueType = MovingActivity
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 MovingActivity
impl OutputType for MovingActivity
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 MovingActivity
impl PartialEq for MovingActivity
Source§impl Serialize for MovingActivity
impl Serialize for MovingActivity
Source§impl ToSql for MovingActivity
impl ToSql for MovingActivity
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 MovingActivity
impl Eq for MovingActivity
impl StructuralPartialEq for MovingActivity
Auto Trait Implementations§
impl Freeze for MovingActivity
impl RefUnwindSafe for MovingActivity
impl Send for MovingActivity
impl Sync for MovingActivity
impl Unpin for MovingActivity
impl UnwindSafe for MovingActivity
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