Struct plexo_sdk::cognition::operations::TaskSuggestion
source · pub struct TaskSuggestion {
pub title: String,
pub description: String,
pub status: TaskStatus,
pub priority: TaskPriority,
pub due_date: DateTime<Utc>,
}Fields§
§title: String§description: String§status: TaskStatus§priority: TaskPriority§due_date: DateTime<Utc>Implementations§
source§impl TaskSuggestion
impl TaskSuggestion
pub async fn title(&self, ctx: &Context<'_>) -> Result<&String>
pub async fn description(&self, ctx: &Context<'_>) -> Result<&String>
pub async fn status(&self, ctx: &Context<'_>) -> Result<&TaskStatus>
pub async fn priority(&self, ctx: &Context<'_>) -> Result<&TaskPriority>
pub async fn due_date(&self, ctx: &Context<'_>) -> Result<&DateTime<Utc>>
Trait Implementations§
source§impl ContainerType for TaskSuggestion
impl ContainerType for TaskSuggestion
source§async fn resolve_field(&self, ctx: &Context<'_>) -> ServerResult<Option<Value>>
async fn resolve_field(&self, ctx: &Context<'_>) -> ServerResult<Option<Value>>
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(
&self,
_: &ContextBase<'_, &Positioned<Field>>,
_params: &ConstValue
) -> impl Future<Output = Result<Option<ConstValue>, ServerError>> + Send
fn find_entity( &self, _: &ContextBase<'_, &Positioned<Field>>, _params: &ConstValue ) -> impl Future<Output = Result<Option<ConstValue>, ServerError>> + Send
Find the GraphQL entity with the given name from the parameter. Read more
source§impl Debug for TaskSuggestion
impl Debug for TaskSuggestion
source§impl Default for TaskSuggestion
impl Default for TaskSuggestion
source§fn default() -> TaskSuggestion
fn default() -> TaskSuggestion
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TaskSuggestion
impl<'de> Deserialize<'de> for TaskSuggestion
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 TaskSuggestion
impl OutputType for TaskSuggestion
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,
ctx: &ContextSelectionSet<'_>,
_field: &Positioned<Field>
) -> ServerResult<Value>
async fn resolve( &self, ctx: &ContextSelectionSet<'_>, _field: &Positioned<Field> ) -> ServerResult<Value>
Resolve an output value to
async_graphql::Value.source§fn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
source§impl ParseFromJSON for TaskSuggestion
impl ParseFromJSON for TaskSuggestion
source§fn parse_from_json(value: Option<Value>) -> Result<Self, ParseError<Self>>
fn parse_from_json(value: Option<Value>) -> Result<Self, ParseError<Self>>
Parse from
serde_json::Value.source§fn parse_from_json_string(s: &str) -> Result<Self, ParseError<Self>>
fn parse_from_json_string(s: &str) -> Result<Self, ParseError<Self>>
Parse from JSON string.
source§impl ParseFromXML for TaskSuggestion
impl ParseFromXML for TaskSuggestion
source§fn parse_from_xml(value: Option<Value>) -> Result<Self, ParseError<Self>>
fn parse_from_xml(value: Option<Value>) -> Result<Self, ParseError<Self>>
Parse from
serde_json::Value.source§fn parse_from_xml_string(s: &str) -> Result<Self, ParseError<Self>>
fn parse_from_xml_string(s: &str) -> Result<Self, ParseError<Self>>
Parse from XML string.
source§impl ParseFromYAML for TaskSuggestion
impl ParseFromYAML for TaskSuggestion
source§fn parse_from_yaml(value: Option<Value>) -> Result<Self, ParseError<Self>>
fn parse_from_yaml(value: Option<Value>) -> Result<Self, ParseError<Self>>
Parse from
serde_json::Value.source§fn parse_from_yaml_string(s: &str) -> Result<Self, ParseError<Self>>
fn parse_from_yaml_string(s: &str) -> Result<Self, ParseError<Self>>
Parse from YAML string.
source§impl ToJSON for TaskSuggestion
impl ToJSON for TaskSuggestion
source§impl ToXML for TaskSuggestion
impl ToXML for TaskSuggestion
source§impl ToYAML for TaskSuggestion
impl ToYAML for TaskSuggestion
source§impl Type for TaskSuggestion
impl Type for TaskSuggestion
source§const IS_REQUIRED: bool = true
const IS_REQUIRED: bool = true
If it is
true, it means that this type is required.§type RawValueType = TaskSuggestion
type RawValueType = TaskSuggestion
The raw type used for validator. Read more
§type RawElementValueType = TaskSuggestion
type RawElementValueType = TaskSuggestion
The raw element type used for validator.
source§fn schema_ref() -> MetaSchemaRef
fn schema_ref() -> MetaSchemaRef
Get schema reference of this type.
source§fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn as_raw_value(&self) -> Option<&Self::RawValueType>
Returns a reference to the raw value.
source§fn raw_element_iter<'a>(
&'a self
) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
fn raw_element_iter<'a>( &'a self ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Returns an iterator for traversing the elements.
impl ObjectType for TaskSuggestion
Auto Trait Implementations§
impl RefUnwindSafe for TaskSuggestion
impl Send for TaskSuggestion
impl Sync for TaskSuggestion
impl Unpin for TaskSuggestion
impl UnwindSafe for TaskSuggestion
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