Struct novatel_oem6_service::GetPowerResponse
source · [−]pub struct GetPowerResponse {
pub state: PowerState,
pub uptime: i32,
}
Expand description
Response fields for ‘power’ query
Fields
state: PowerState
Current power state of the system
uptime: i32
A value of 1 confirms that the system is on. A value of 0 confirms that the system is off or unavailable
Note: This field is named “uptime” to help maintain parity with the other services. The OEM6 does not give a traditional uptime value.
Trait Implementations
sourceimpl<__S> GraphQLType<__S> for GetPowerResponse where
__S: ScalarValue,
for<'__b> &'__b __S: ScalarRefValue<'__b>,
impl<__S> GraphQLType<__S> for GetPowerResponse where
__S: ScalarValue,
for<'__b> &'__b __S: ScalarRefValue<'__b>,
sourcefn concrete_type_name(&self, _: &Self::Context, _: &()) -> String
fn concrete_type_name(&self, _: &Self::Context, _: &()) -> String
Return the concrete type name for this instance/union. Read more
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_field(
&self,
_: &(),
field_name: &str,
_: &Arguments<'_, __S>,
executor: &Executor<'_, Self::Context, __S>
) -> ExecutionResult<__S>
fn resolve_field(
&self,
_: &(),
field_name: &str,
_: &Arguments<'_, __S>,
executor: &Executor<'_, Self::Context, __S>
) -> ExecutionResult<__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
Auto Trait Implementations
impl RefUnwindSafe for GetPowerResponse
impl Send for GetPowerResponse
impl Sync for GetPowerResponse
impl Unpin for GetPowerResponse
impl UnwindSafe for GetPowerResponse
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