pub struct Task {
Show 13 fields pub id: Uuid, pub created_at: DateTime<Utc>, pub updated_at: DateTime<Utc>, pub title: String, pub owner_id: Uuid, pub status: TaskStatus, pub priority: TaskPriority, pub count: i32, pub description: Option<String>, pub due_date: Option<DateTime<Utc>>, pub project_id: Option<Uuid>, pub lead_id: Option<Uuid>, pub parent_id: Option<Uuid>,
}

Fields§

§id: Uuid§created_at: DateTime<Utc>§updated_at: DateTime<Utc>§title: String§owner_id: Uuid§status: TaskStatus§priority: TaskPriority§count: i32§description: Option<String>§due_date: Option<DateTime<Utc>>§project_id: Option<Uuid>§lead_id: Option<Uuid>§parent_id: Option<Uuid>

Implementations§

source§

impl Task

source

pub async fn id(&self, ctx: &Context<'_>) -> Result<&Uuid>

source

pub async fn created_at(&self, ctx: &Context<'_>) -> Result<&DateTime<Utc>>

source

pub async fn updated_at(&self, ctx: &Context<'_>) -> Result<&DateTime<Utc>>

source

pub async fn title(&self, ctx: &Context<'_>) -> Result<&String>

source

pub async fn owner_id(&self, ctx: &Context<'_>) -> Result<&Uuid>

source

pub async fn status(&self, ctx: &Context<'_>) -> Result<&TaskStatus>

source

pub async fn priority(&self, ctx: &Context<'_>) -> Result<&TaskPriority>

source

pub async fn count(&self, ctx: &Context<'_>) -> Result<&i32>

source

pub async fn description(&self, ctx: &Context<'_>) -> Result<&Option<String>>

source

pub async fn due_date( &self, ctx: &Context<'_> ) -> Result<&Option<DateTime<Utc>>>

source

pub async fn project_id(&self, ctx: &Context<'_>) -> Result<&Option<Uuid>>

source

pub async fn lead_id(&self, ctx: &Context<'_>) -> Result<&Option<Uuid>>

source

pub async fn parent_id(&self, ctx: &Context<'_>) -> Result<&Option<Uuid>>

Trait Implementations§

source§

impl Clone for Task

source§

fn clone(&self) -> Task

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl ContainerType for Task

source§

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 more
source§

fn collect_all_fields<'a>( &'a self, ctx: &ContextBase<'a, &'a Positioned<SelectionSet>>, fields: &mut Fields<'a> ) -> Result<(), ServerError>
where Self: Send + Sync,

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

Find the GraphQL entity with the given name from the parameter. Read more
source§

impl Debug for Task

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl OutputType for Task

source§

fn type_name() -> Cow<'static, str>

Type the name.
source§

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>

Resolve an output value to async_graphql::Value.
source§

fn qualified_type_name() -> String

Qualified typename.
source§

fn introspection_type_name(&self) -> Cow<'static, str>

Introspection type name Read more
source§

impl ParseFromJSON for Task

source§

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>>

Parse from JSON string.
source§

impl ParseFromXML for Task

source§

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>>

Parse from XML string.
source§

impl ParseFromYAML for Task

source§

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>>

Parse from YAML string.
source§

impl Serialize for Task

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl TaskRelations for Task

source§

fn owner<'life0, 'life1, 'async_trait>( &'life0 self, loaders: &'life1 SDKLoaders ) -> Pin<Box<dyn Future<Output = Result<Member, SDKError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn project<'life0, 'life1, 'async_trait>( &'life0 self, loaders: &'life1 SDKLoaders ) -> Pin<Box<dyn Future<Output = Result<Option<Project>, SDKError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn lead<'life0, 'life1, 'async_trait>( &'life0 self, loaders: &'life1 SDKLoaders ) -> Pin<Box<dyn Future<Output = Result<Option<Member>, SDKError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn parent<'life0, 'life1, 'async_trait>( &'life0 self, loaders: &'life1 SDKLoaders ) -> Pin<Box<dyn Future<Output = Result<Option<Task>, SDKError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn assignees<'life0, 'life1, 'async_trait>( &'life0 self, loaders: &'life1 SDKLoaders ) -> Pin<Box<dyn Future<Output = Result<Vec<Member>, SDKError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn labels<'life0, 'life1, 'async_trait>( &'life0 self, loaders: &'life1 SDKLoaders ) -> Pin<Box<dyn Future<Output = Result<Vec<Label>, SDKError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn subtasks<'life0, 'life1, 'async_trait>( &'life0 self, loaders: &'life1 SDKLoaders ) -> Pin<Box<dyn Future<Output = Result<Vec<Task>, SDKError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn changes<'life0, 'life1, 'async_trait>( &'life0 self, loaders: &'life1 SDKLoaders ) -> Pin<Box<dyn Future<Output = Result<Vec<Change>, SDKError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

impl ToJSON for Task

source§

fn to_json(&self) -> Option<Value>

Convert this value to Value.
source§

fn to_json_string(&self) -> String

Convert this value to JSON string.
source§

impl ToXML for Task

source§

fn to_xml(&self) -> Option<Value>

Convert this value to Value.
source§

fn to_xml_string(&self) -> String

Convert this value to XML string.
source§

impl ToYAML for Task

source§

fn to_yaml(&self) -> Option<Value>

Convert this value to Value.
source§

fn to_yaml_string(&self) -> String

Convert this value to YAML string.
source§

impl Type for Task

source§

const IS_REQUIRED: bool = true

If it is true, it means that this type is required.
§

type RawValueType = Task

The raw type used for validator. Read more
§

type RawElementValueType = Task

The raw element type used for validator.
source§

fn name() -> Cow<'static, str>

Returns the name of this type
source§

fn schema_ref() -> MetaSchemaRef

Get schema reference of this type.
source§

fn register(registry: &mut Registry)

Register this type to types registry.
source§

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>

Returns an iterator for traversing the elements.
source§

fn is_empty(&self) -> bool

Returns true if this value is empty. Read more
source§

fn is_none(&self) -> bool

Returns true if this value is none. Read more
source§

impl ObjectType for Task

Auto Trait Implementations§

§

impl RefUnwindSafe for Task

§

impl Send for Task

§

impl Sync for Task

§

impl Unpin for Task

§

impl UnwindSafe for Task

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into<'async_trait>( self ) -> Pin<Box<dyn Future<Output = Result<U, <U as TryFrom<T>>::Error>> + 'async_trait>>
where T: 'async_trait,

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more