Struct isis_ants_service::GetPowerResponse
source · [−]pub struct GetPowerResponse {
pub state: PowerState,
pub uptime: u32,
}
Expand description
Response fields for ‘power’ query
Fields
state: PowerState
Current power status
uptime: u32
System uptime, in seconds
Trait Implementations
sourceimpl GraphQLType<DefaultScalarValue> for GetPowerResponse
impl GraphQLType<DefaultScalarValue> for GetPowerResponse
sourcefn meta<'r>(
info: &Self::TypeInfo,
registry: &mut Registry<'r, DefaultScalarValue>
) -> MetaType<'r, DefaultScalarValue> where
for<'__b> &'__b DefaultScalarValue: ScalarRefValue<'__b>,
DefaultScalarValue: 'r,
fn meta<'r>(
info: &Self::TypeInfo,
registry: &mut Registry<'r, DefaultScalarValue>
) -> MetaType<'r, DefaultScalarValue> where
for<'__b> &'__b DefaultScalarValue: ScalarRefValue<'__b>,
DefaultScalarValue: 'r,
The meta type representing this GraphQL type.
sourcefn concrete_type_name(&self, _: &Self::Context, _: &Self::TypeInfo) -> String
fn concrete_type_name(&self, _: &Self::Context, _: &Self::TypeInfo) -> String
Return the concrete type name for this instance/union. Read more
sourcefn resolve_field(
&self,
info: &Self::TypeInfo,
field: &str,
args: &Arguments<'_, DefaultScalarValue>,
executor: &Executor<'_, Self::Context, DefaultScalarValue>
) -> ExecutionResult<DefaultScalarValue>
fn resolve_field(
&self,
info: &Self::TypeInfo,
field: &str,
args: &Arguments<'_, DefaultScalarValue>,
executor: &Executor<'_, Self::Context, DefaultScalarValue>
) -> ExecutionResult<DefaultScalarValue>
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