pub struct Project {
pub id: Uuid,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub name: String,
pub status: ProjectStatus,
pub visibility: ProjectVisibility,
pub owner_id: Uuid,
pub prefix: Option<String>,
pub description: Option<String>,
pub lead_id: Option<Uuid>,
pub start_date: Option<DateTime<Utc>>,
pub due_date: Option<DateTime<Utc>>,
}Fields§
§id: Uuid§created_at: DateTime<Utc>§updated_at: DateTime<Utc>§name: String§status: ProjectStatus§visibility: ProjectVisibility§owner_id: Uuid§prefix: Option<String>§description: Option<String>§lead_id: Option<Uuid>§start_date: Option<DateTime<Utc>>§due_date: Option<DateTime<Utc>>Implementations§
source§impl Project
impl Project
pub async fn id(&self, ctx: &Context<'_>) -> Result<&Uuid>
pub async fn created_at(&self, ctx: &Context<'_>) -> Result<&DateTime<Utc>>
pub async fn updated_at(&self, ctx: &Context<'_>) -> Result<&DateTime<Utc>>
pub async fn name(&self, ctx: &Context<'_>) -> Result<&String>
pub async fn status(&self, ctx: &Context<'_>) -> Result<&ProjectStatus>
pub async fn visibility(&self, ctx: &Context<'_>) -> Result<&ProjectVisibility>
pub async fn owner_id(&self, ctx: &Context<'_>) -> Result<&Uuid>
pub async fn prefix(&self, ctx: &Context<'_>) -> Result<&Option<String>>
pub async fn description(&self, ctx: &Context<'_>) -> Result<&Option<String>>
pub async fn lead_id(&self, ctx: &Context<'_>) -> Result<&Option<Uuid>>
pub async fn start_date( &self, ctx: &Context<'_> ) -> Result<&Option<DateTime<Utc>>>
pub async fn due_date( &self, ctx: &Context<'_> ) -> Result<&Option<DateTime<Utc>>>
Trait Implementations§
source§impl ContainerType for Project
impl ContainerType for Project
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 OutputType for Project
impl OutputType for Project
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 Project
impl ParseFromJSON for Project
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 Project
impl ParseFromXML for Project
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 Project
impl ParseFromYAML for Project
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 ProjectRelations for Project
impl ProjectRelations for Project
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,
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,
fn tasks<'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,
fn members<'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,
fn assets<'life0, 'life1, 'async_trait>(
&'life0 self,
loaders: &'life1 SDKLoaders
) -> Pin<Box<dyn Future<Output = Result<Vec<Asset>, SDKError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn teams<'life0, 'life1, 'async_trait>(
&'life0 self,
loaders: &'life1 SDKLoaders
) -> Pin<Box<dyn Future<Output = Result<Vec<Team>, SDKError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
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 Type for Project
impl Type for Project
source§const IS_REQUIRED: bool = true
const IS_REQUIRED: bool = true
If it is
true, it means that this type is required.§type RawValueType = Project
type RawValueType = Project
The raw type used for validator. Read more
§type RawElementValueType = Project
type RawElementValueType = Project
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 Project
Auto Trait Implementations§
impl Freeze for Project
impl RefUnwindSafe for Project
impl Send for Project
impl Sync for Project
impl Unpin for Project
impl UnwindSafe for Project
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