Skip to main content

Team

Struct Team 

Source
pub struct Team {
Show 85 fields pub id: Option<String>, pub created_at: Option<DateTime<Utc>>, pub updated_at: Option<DateTime<Utc>>, pub archived_at: Option<DateTime<Utc>>, pub name: Option<String>, pub key: Option<String>, pub description: Option<String>, pub icon: Option<String>, pub color: Option<String>, pub retired_at: Option<DateTime<Utc>>, pub organization: Option<Box<Organization>>, pub parent: Option<Box<Team>>, pub children: Option<Box<Vec<Team>>>, pub cycles_enabled: Option<bool>, pub cycle_start_day: Option<f64>, pub cycle_duration: Option<f64>, pub cycle_cooldown_time: Option<f64>, pub cycle_issue_auto_assign_started: Option<bool>, pub cycle_issue_auto_assign_completed: Option<bool>, pub cycle_lock_to_active: Option<bool>, pub upcoming_cycle_count: Option<f64>, pub timezone: Option<String>, pub inherit_workflow_statuses: Option<bool>, pub inherit_issue_estimation: Option<bool>, pub issue_estimation_type: Option<String>, pub issue_ordering_no_priority_first: Option<bool>, pub issue_estimation_allow_zero: Option<bool>, pub set_issue_sort_order_on_state_change: Option<String>, pub issue_estimation_extended: Option<bool>, pub default_issue_estimate: Option<f64>, pub triage_enabled: Option<bool>, pub require_priority_to_leave_triage: Option<bool>, pub default_issue_state: Option<Box<WorkflowState>>, pub default_template_for_members: Option<Box<Template>>, pub default_template_for_members_id: Option<String>, pub default_template_for_non_members: Option<Box<Template>>, pub default_template_for_non_members_id: Option<String>, pub default_project_template: Option<Box<Template>>, pub triage_issue_state: Option<Box<WorkflowState>>, pub private: Option<bool>, pub all_members_can_join: Option<bool>, pub security_settings: Option<Value>, pub facets: Option<Box<Vec<Facet>>>, pub posts: Option<Box<Vec<Post>>>, pub scim_managed: Option<bool>, pub scim_group_name: Option<String>, pub progress_history: Option<Value>, pub current_progress: Option<Value>, pub draft_workflow_state: Option<Box<WorkflowState>>, pub start_workflow_state: Option<Box<WorkflowState>>, pub review_workflow_state: Option<Box<WorkflowState>>, pub mergeable_workflow_state: Option<Box<WorkflowState>>, pub merge_workflow_state: Option<Box<WorkflowState>>, pub group_issue_history: Option<bool>, pub ai_thread_summaries_enabled: Option<bool>, pub ai_discussion_summaries_enabled: Option<bool>, pub slack_new_issue: Option<bool>, pub slack_issue_comments: Option<bool>, pub slack_issue_statuses: Option<bool>, pub auto_close_period: Option<f64>, pub auto_close_state_id: Option<String>, pub auto_archive_period: Option<f64>, pub auto_close_parent_issues: Option<bool>, pub auto_close_child_issues: Option<bool>, pub marked_as_duplicate_workflow_state: Option<Box<WorkflowState>>, pub join_by_default: Option<bool>, pub cycle_calender_url: Option<String>, pub display_name: Option<String>, pub issues: Option<Box<IssueConnection>>, pub issue_count: Option<i64>, pub cycles: Option<Box<CycleConnection>>, pub active_cycle: Option<Box<Cycle>>, pub triage_responsibility: Option<Box<TriageResponsibility>>, pub members: Option<Box<UserConnection>>, pub membership: Option<Box<TeamMembership>>, pub memberships: Option<Box<TeamMembershipConnection>>, pub projects: Option<Box<ProjectConnection>>, pub states: Option<Box<WorkflowStateConnection>>, pub git_automation_states: Option<Box<GitAutomationStateConnection>>, pub templates: Option<Box<TemplateConnection>>, pub labels: Option<Box<IssueLabelConnection>>, pub webhooks: Option<Box<WebhookConnection>>, pub integrations_settings: Option<Box<IntegrationsSettings>>, pub issue_sort_order_default_to_bottom: Option<bool>, pub invite_hash: Option<String>,
}
Expand description

An organizational unit that contains issues.

Fields§

§id: Option<String>

The unique identifier of the entity.

§created_at: Option<DateTime<Utc>>

The time at which the entity was created.

§updated_at: Option<DateTime<Utc>>

The last time at which the entity was meaningfully updated. This is the same as the creation time if the entity hasn’t been updated after creation.

§archived_at: Option<DateTime<Utc>>

The time at which the entity was archived. Null if the entity has not been archived.

§name: Option<String>

The team’s name.

§key: Option<String>

The team’s unique key. The key is used in URLs.

§description: Option<String>

The team’s description.

§icon: Option<String>

The icon of the team.

§color: Option<String>

The team’s color.

§retired_at: Option<DateTime<Utc>>

The time at which the team was retired. Null if the team has not been retired.

§organization: Option<Box<Organization>>

The organization that the team is associated with.

§parent: Option<Box<Team>>

Internal The team’s parent team.

§children: Option<Box<Vec<Team>>>

Internal The team’s sub-teams.

§cycles_enabled: Option<bool>

Whether the team uses cycles.

§cycle_start_day: Option<f64>

The day of the week that a new cycle starts.

§cycle_duration: Option<f64>

The duration of a cycle in weeks.

§cycle_cooldown_time: Option<f64>

The cooldown time after each cycle in weeks.

§cycle_issue_auto_assign_started: Option<bool>

Auto assign started issues to current cycle.

§cycle_issue_auto_assign_completed: Option<bool>

Auto assign completed issues to current cycle.

§cycle_lock_to_active: Option<bool>

Auto assign issues to current cycle if in active status.

§upcoming_cycle_count: Option<f64>

How many upcoming cycles to create.

§timezone: Option<String>

The timezone of the team. Defaults to “America/Los_Angeles”

§inherit_workflow_statuses: Option<bool>

Whether the team should inherit its workflow statuses from its parent. Only applies to sub-teams.

§inherit_issue_estimation: Option<bool>

Whether the team should inherit its estimation settings from its parent. Only applies to sub-teams.

§issue_estimation_type: Option<String>

The issue estimation type to use. Must be one of “notUsed”, “exponential”, “fibonacci”, “linear”, “tShirt”.

§issue_ordering_no_priority_first: Option<bool>

DEPRECATED Whether issues without priority should be sorted first.

§issue_estimation_allow_zero: Option<bool>

Whether to allow zeros in issues estimates.

§set_issue_sort_order_on_state_change: Option<String>

Where to move issues when changing state.

§issue_estimation_extended: Option<bool>

Whether to add additional points to the estimate scale.

§default_issue_estimate: Option<f64>

What to use as a default estimate for unestimated issues.

§triage_enabled: Option<bool>

Whether triage mode is enabled for the team or not.

§require_priority_to_leave_triage: Option<bool>

Whether an issue needs to have a priority set before leaving triage.

§default_issue_state: Option<Box<WorkflowState>>

The default workflow state into which issues are set when they are opened by team members.

§default_template_for_members: Option<Box<Template>>

The default template to use for new issues created by members of the team.

§default_template_for_members_id: Option<String>

The id of the default template to use for new issues created by members of the team.

§default_template_for_non_members: Option<Box<Template>>

The default template to use for new issues created by non-members of the team.

§default_template_for_non_members_id: Option<String>

The id of the default template to use for new issues created by non-members of the team.

§default_project_template: Option<Box<Template>>

The default template to use for new projects created for the team.

§triage_issue_state: Option<Box<WorkflowState>>

The workflow state into which issues are set when they are opened by non-team members or integrations if triage is enabled.

§private: Option<bool>

Whether the team is private or not.

§all_members_can_join: Option<bool>

Whether all members in the workspace can join the team. Only used for public teams.

§security_settings: Option<Value>

Security settings for the team.

§facets: Option<Box<Vec<Facet>>>

Internal Facets associated with the team.

§posts: Option<Box<Vec<Post>>>

Internal Posts associated with the team.

§scim_managed: Option<bool>

Whether the team is managed by SCIM integration.

§scim_group_name: Option<String>

The SCIM group name for the team.

§progress_history: Option<Value>

Internal The progress history of the team.

§current_progress: Option<Value>

Internal The current progress of the team.

§draft_workflow_state: Option<Box<WorkflowState>>

The workflow state into which issues are moved when a PR has been opened as draft.

§start_workflow_state: Option<Box<WorkflowState>>

The workflow state into which issues are moved when a PR has been opened.

§review_workflow_state: Option<Box<WorkflowState>>

The workflow state into which issues are moved when a review has been requested for the PR.

§mergeable_workflow_state: Option<Box<WorkflowState>>

The workflow state into which issues are moved when a PR is ready to be merged.

§merge_workflow_state: Option<Box<WorkflowState>>

The workflow state into which issues are moved when a PR has been merged.

§group_issue_history: Option<bool>

Whether to group recent issue history entries.

§ai_thread_summaries_enabled: Option<bool>

Whether to enable resolved thread AI summaries.

§ai_discussion_summaries_enabled: Option<bool>

Whether to enable AI discussion summaries for issues in this team.

§slack_new_issue: Option<bool>

Whether to send new issue notifications to Slack.

§slack_issue_comments: Option<bool>

Whether to send new issue comment notifications to Slack.

§slack_issue_statuses: Option<bool>

Whether to send new issue status updates to Slack.

§auto_close_period: Option<f64>

Period after which issues are automatically closed in months. Null/undefined means disabled.

§auto_close_state_id: Option<String>

The canceled workflow state which auto closed issues will be set to. Defaults to the first canceled state.

§auto_archive_period: Option<f64>

Period after which automatically closed and completed issues are automatically archived in months.

§auto_close_parent_issues: Option<bool>

Whether parent issues should automatically close when all child issues are closed

§auto_close_child_issues: Option<bool>

Whether child issues should automatically close when their parent issue is closed

§marked_as_duplicate_workflow_state: Option<Box<WorkflowState>>

The workflow state into which issues are moved when they are marked as a duplicate of another issue. Defaults to the first canceled state.

§join_by_default: Option<bool>

Internal Whether new users should join this team by default.

§cycle_calender_url: Option<String>

Calendar feed URL (iCal) for cycles.

§display_name: Option<String>

The name of the team including its parent team name if it has one.

§issues: Option<Box<IssueConnection>>

Issues associated with the team.

§issue_count: Option<i64>

Number of issues in the team.

§cycles: Option<Box<CycleConnection>>

Cycles associated with the team.

§active_cycle: Option<Box<Cycle>>

Team’s currently active cycle.

§triage_responsibility: Option<Box<TriageResponsibility>>

Team’s triage responsibility.

§members: Option<Box<UserConnection>>

Users who are members of this team.

§membership: Option<Box<TeamMembership>>

ALPHA The membership of the given user in the team.

§memberships: Option<Box<TeamMembershipConnection>>

Memberships associated with the team. For easier access of the same data, use members query.

§projects: Option<Box<ProjectConnection>>

Projects associated with the team.

§states: Option<Box<WorkflowStateConnection>>

The states that define the workflow associated with the team.

§git_automation_states: Option<Box<GitAutomationStateConnection>>

The Git automation states for the team.

§templates: Option<Box<TemplateConnection>>

Templates associated with the team.

§labels: Option<Box<IssueLabelConnection>>

Labels associated with the team.

§webhooks: Option<Box<WebhookConnection>>

Webhooks associated with the team.

§integrations_settings: Option<Box<IntegrationsSettings>>

Settings for all integrations associated with that team.

§issue_sort_order_default_to_bottom: Option<bool>

DEPRECATED Whether to move issues to bottom of the column when changing state.

§invite_hash: Option<String>

DEPRECATED Unique hash for the team to be used in invite URLs.

Trait Implementations§

Source§

impl Clone for Team

Source§

fn clone(&self) -> Team

Returns a duplicate 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 Debug for Team

Source§

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

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

impl Default for Team

Source§

fn default() -> Team

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Team
where Team: Default,

Source§

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 GraphQLFields for Team

Source§

type FullType = Team

The full generated type this implementation validates against.
Source§

fn selection() -> String

Return the GraphQL field selection string for this type. Read more
Source§

impl Serialize for Team

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

Auto Trait Implementations§

§

impl Freeze for Team

§

impl RefUnwindSafe for Team

§

impl Send for Team

§

impl Sync for Team

§

impl Unpin for Team

§

impl UnwindSafe for Team

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

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

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

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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

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

Source§

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

Source§

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

Source§

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.
Source§

impl<T> WithSubscriber for T

Source§

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

fn with_current_subscriber(self) -> WithDispatch<Self>

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

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> FieldCompatible<T> for T