Enum novatel_oem6_service::PowerState
source · [−]pub enum PowerState {
On,
Off,
}
Expand description
Response field for ‘power’ query
Variants
On
System is on
Off
System is off or unavailable
Trait Implementations
sourceimpl Clone for PowerState
impl Clone for PowerState
sourcefn clone(&self) -> PowerState
fn clone(&self) -> PowerState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PowerState
impl Debug for PowerState
sourceimpl<__S: ScalarValue> FromInputValue<__S> for PowerState
impl<__S: ScalarValue> FromInputValue<__S> for PowerState
sourcefn from_input_value(v: &InputValue<__S>) -> Option<PowerState> where
for<'__b> &'__b __S: ScalarRefValue<'__b>,
fn from_input_value(v: &InputValue<__S>) -> Option<PowerState> where
for<'__b> &'__b __S: ScalarRefValue<'__b>,
Performs the conversion.
sourceimpl<__S> GraphQLType<__S> for PowerState where
__S: ScalarValue,
for<'__b> &'__b __S: ScalarRefValue<'__b>,
impl<__S> GraphQLType<__S> for PowerState where
__S: ScalarValue,
for<'__b> &'__b __S: ScalarRefValue<'__b>,
sourcefn meta<'r>(_: &(), registry: &mut Registry<'r, __S>) -> MetaType<'r, __S> where
__S: 'r,
fn meta<'r>(_: &(), registry: &mut Registry<'r, __S>) -> MetaType<'r, __S> where
__S: 'r,
The meta type representing this GraphQL type.
sourcefn resolve(
&self,
_: &(),
_: Option<&[Selection<'_, __S>]>,
_: &Executor<'_, Self::Context, __S>
) -> Value<__S>
fn resolve(
&self,
_: &(),
_: Option<&[Selection<'_, __S>]>,
_: &Executor<'_, Self::Context, __S>
) -> Value<__S>
Resolve the provided selection set against the current object. Read more
fn resolve_field(
&self,
info: &Self::TypeInfo,
field_name: &str,
arguments: &Arguments<'_, S>,
executor: &Executor<'_, Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
fn resolve_field(
&self,
info: &Self::TypeInfo,
field_name: &str,
arguments: &Arguments<'_, S>,
executor: &Executor<'_, Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
Resolve the value of a single field on this type. Read more
fn resolve_into_type(
&self,
info: &Self::TypeInfo,
type_name: &str,
selection_set: Option<&[Selection<'_, S>]>,
executor: &Executor<'_, Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
fn resolve_into_type(
&self,
info: &Self::TypeInfo,
type_name: &str,
selection_set: Option<&[Selection<'_, S>]>,
executor: &Executor<'_, Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
Resolve this interface or union into a concrete type Read more
fn concrete_type_name(
&self,
context: &Self::Context,
info: &Self::TypeInfo
) -> String
fn concrete_type_name(
&self,
context: &Self::Context,
info: &Self::TypeInfo
) -> String
Return the concrete type name for this instance/union. Read more
sourceimpl PartialEq<PowerState> for PowerState
impl PartialEq<PowerState> for PowerState
sourceimpl<__S: ScalarValue> ToInputValue<__S> for PowerState
impl<__S: ScalarValue> ToInputValue<__S> for PowerState
sourcefn to_input_value(&self) -> InputValue<__S>
fn to_input_value(&self) -> InputValue<__S>
Performs the conversion.
impl Eq for PowerState
impl StructuralEq for PowerState
impl StructuralPartialEq for PowerState
Auto Trait Implementations
impl RefUnwindSafe for PowerState
impl Send for PowerState
impl Sync for PowerState
impl Unpin for PowerState
impl UnwindSafe for PowerState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> CloneAny for T where
T: Any + Clone,
impl<T> CloneAny for T where
T: Any + Clone,
fn clone_any(&self) -> Box<dyn CloneAny + 'static, Global>
fn clone_any_send(&self) -> Box<dyn CloneAny + Send + 'static, Global> where
T: Send,
fn clone_any_sync(&self) -> Box<dyn CloneAny + Sync + 'static, Global> where
T: Sync,
fn clone_any_send_sync(
&self
) -> Box<dyn CloneAny + Sync + Send + 'static, Global> where
T: Send + Sync,
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.