pub struct SupMCUTelemetryDefinition {
pub name: String,
pub format: SupMCUFormat,
pub length: Option<usize>,
pub default_sim_value: Option<Vec<SupMCUValue>>,
pub idx: usize,
pub telemetry_type: TelemetryType,
}
Fields§
§name: String
§format: SupMCUFormat
§length: Option<usize>
§default_sim_value: Option<Vec<SupMCUValue>>
§idx: usize
§telemetry_type: TelemetryType
Implementations§
Source§impl SupMCUTelemetryDefinition
impl SupMCUTelemetryDefinition
pub async fn name(&self, ctx: &Context<'_>) -> Result<&String>
pub async fn format(&self, ctx: &Context<'_>) -> Result<&SupMCUFormat>
pub async fn length(&self, ctx: &Context<'_>) -> Result<&Option<usize>>
pub async fn idx(&self, ctx: &Context<'_>) -> Result<&usize>
pub async fn telemetry_type(&self, ctx: &Context<'_>) -> Result<&TelemetryType>
Source§impl SupMCUTelemetryDefinition
impl SupMCUTelemetryDefinition
pub fn simulatable(&self) -> bool
Trait Implementations§
Source§impl Clone for SupMCUTelemetryDefinition
impl Clone for SupMCUTelemetryDefinition
Source§fn clone(&self) -> SupMCUTelemetryDefinition
fn clone(&self) -> SupMCUTelemetryDefinition
Returns a duplicate 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 ContainerType for SupMCUTelemetryDefinition
impl ContainerType for SupMCUTelemetryDefinition
Source§fn resolve_field<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context<'life2>,
) -> Pin<Box<dyn Future<Output = ServerResult<Option<Value>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn resolve_field<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context<'life2>,
) -> Pin<Box<dyn Future<Output = ServerResult<Option<Value>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Resolves a field value and outputs it as a json value
async_graphql::Value
. Read moreSource§fn collect_all_fields<'a>(
&'a self,
ctx: &ContextBase<'a, &'a Positioned<SelectionSet>>,
fields: &mut Fields<'a>,
) -> Result<(), ServerError>
fn collect_all_fields<'a>( &'a self, ctx: &ContextBase<'a, &'a Positioned<SelectionSet>>, fields: &mut Fields<'a>, ) -> Result<(), ServerError>
Collect all the fields of the container that are queried in the
selection set. Read more
Source§fn find_entity<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_: &'life1 ContextBase<'life2, &'life2 Positioned<Field>>,
_params: &'life3 ConstValue,
) -> Pin<Box<dyn Future<Output = Result<Option<ConstValue>, ServerError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: Sync + 'async_trait,
fn find_entity<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_: &'life1 ContextBase<'life2, &'life2 Positioned<Field>>,
_params: &'life3 ConstValue,
) -> Pin<Box<dyn Future<Output = Result<Option<ConstValue>, ServerError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: Sync + 'async_trait,
Find the GraphQL entity with the given name from the parameter. Read more
Source§impl Debug for SupMCUTelemetryDefinition
impl Debug for SupMCUTelemetryDefinition
Source§impl Default for SupMCUTelemetryDefinition
impl Default for SupMCUTelemetryDefinition
Source§impl<'de> Deserialize<'de> for SupMCUTelemetryDefinition
impl<'de> Deserialize<'de> for SupMCUTelemetryDefinition
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 OutputType for SupMCUTelemetryDefinition
impl OutputType for SupMCUTelemetryDefinition
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 resolve<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
ctx: &'life1 ContextSelectionSet<'life2>,
_field: &'life3 Positioned<Field>,
) -> Pin<Box<dyn Future<Output = ServerResult<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn resolve<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
ctx: &'life1 ContextSelectionSet<'life2>,
_field: &'life3 Positioned<Field>,
) -> Pin<Box<dyn Future<Output = ServerResult<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Resolve an output value to
async_graphql::Value
.Source§fn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
impl ObjectType for SupMCUTelemetryDefinition
impl StructuralPartialEq for SupMCUTelemetryDefinition
Auto Trait Implementations§
impl Freeze for SupMCUTelemetryDefinition
impl RefUnwindSafe for SupMCUTelemetryDefinition
impl Send for SupMCUTelemetryDefinition
impl Sync for SupMCUTelemetryDefinition
impl Unpin for SupMCUTelemetryDefinition
impl UnwindSafe for SupMCUTelemetryDefinition
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more