Skip to main content

Organization

Struct Organization 

Source
pub struct Organization {
Show 69 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 url_key: Option<String>, pub logo_url: Option<String>, pub period_upload_volume: Option<f64>, pub facets: Option<Box<Vec<Facet>>>, pub git_branch_format: Option<String>, pub git_linkback_messages_enabled: Option<bool>, pub git_public_linkback_messages_enabled: Option<bool>, pub git_linkback_descriptions_enabled: Option<bool>, pub roadmap_enabled: Option<bool>, pub project_update_reminder_frequency_in_weeks: Option<f64>, pub project_update_reminders_day: Option<Day>, pub project_update_reminders_hour: Option<f64>, pub initiative_update_reminder_frequency_in_weeks: Option<f64>, pub initiative_update_reminders_day: Option<Day>, pub initiative_update_reminders_hour: Option<f64>, pub fiscal_year_start_month: Option<f64>, pub working_days: Option<Vec<f64>>, pub saml_enabled: Option<bool>, pub saml_settings: Option<Value>, pub scim_enabled: Option<bool>, pub scim_settings: Option<Value>, pub security_settings: Option<Value>, pub allowed_auth_services: Option<Vec<String>>, pub allowed_file_upload_content_types: Option<Vec<String>>, pub ip_restrictions: Option<Box<Vec<OrganizationIpRestriction>>>, pub deletion_requested_at: Option<DateTime<Utc>>, pub trial_ends_at: Option<DateTime<Utc>>, pub trial_starts_at: Option<DateTime<Utc>>, pub previous_url_keys: Option<Vec<String>>, pub hipaa_compliance_enabled: Option<bool>, pub theme_settings: Option<Value>, pub release_channel: Option<ReleaseChannel>, pub customers_configuration: Option<Value>, pub code_intelligence_enabled: Option<bool>, pub code_intelligence_repository: Option<String>, pub default_feed_summary_schedule: Option<FeedSummarySchedule>, pub feed_enabled: Option<bool>, pub hide_non_primary_organizations: Option<bool>, pub ai_addon_enabled: Option<bool>, pub generated_updates_enabled: Option<bool>, pub ai_thread_summaries_enabled: Option<bool>, pub ai_discussion_summaries_enabled: Option<bool>, pub ai_provider_configuration: Option<Value>, pub linear_agent_enabled: Option<bool>, pub sla_day_count: Option<SLADayCountType>, pub project_updates_reminder_frequency: Option<ProjectUpdateReminderFrequency>, pub allowed_ai_providers: Option<Vec<String>>, pub users: Option<Box<UserConnection>>, pub teams: Option<Box<TeamConnection>>, pub project_statuses: Option<Box<Vec<ProjectStatus>>>, pub integrations: Option<Box<IntegrationConnection>>, pub slack_project_channel_integration: Option<Box<Integration>>, pub slack_project_channel_prefix: Option<String>, pub subscription: Option<Box<PaidSubscription>>, pub user_count: Option<i64>, pub created_issue_count: Option<i64>, pub templates: Option<Box<TemplateConnection>>, pub labels: Option<Box<IssueLabelConnection>>, pub project_labels: Option<Box<ProjectLabelConnection>>, pub customer_count: Option<i64>, pub customers_enabled: Option<bool>, pub allow_members_to_invite: Option<bool>, pub restrict_team_creation_to_admins: Option<bool>, pub restrict_label_management_to_admins: Option<bool>,
}
Expand description

An organization. Organizations are root-level objects that contain user accounts and teams.

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 organization’s name.

§url_key: Option<String>

The organization’s unique URL key.

§logo_url: Option<String>

The organization’s logo URL.

§period_upload_volume: Option<f64>

Rolling 30-day total upload volume for the organization, in megabytes.

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

Internal Facets associated with the organization.

§git_branch_format: Option<String>

How git branches are formatted. If null, default formatting will be used.

§git_linkback_messages_enabled: Option<bool>

Whether the Git integration linkback messages should be sent to private repositories.

§git_public_linkback_messages_enabled: Option<bool>

Whether the Git integration linkback messages should be sent to public repositories.

§git_linkback_descriptions_enabled: Option<bool>

Whether issue descriptions should be included in Git integration linkback messages.

§roadmap_enabled: Option<bool>

Whether the organization is using a roadmap.

§project_update_reminder_frequency_in_weeks: Option<f64>

The n-weekly frequency at which to prompt for project updates. When not set, reminders are off.

§project_update_reminders_day: Option<Day>

The day at which to prompt for project updates.

§project_update_reminders_hour: Option<f64>

The hour at which to prompt for project updates.

§initiative_update_reminder_frequency_in_weeks: Option<f64>

The n-weekly frequency at which to prompt for initiative updates. When not set, reminders are off.

§initiative_update_reminders_day: Option<Day>

The day at which to prompt for initiative updates.

§initiative_update_reminders_hour: Option<f64>

The hour at which to prompt for initiative updates.

§fiscal_year_start_month: Option<f64>

The month at which the fiscal year starts. Defaults to January (0).

§working_days: Option<Vec<f64>>

Internal The list of working days. Sunday is 0, Monday is 1, etc.

§saml_enabled: Option<bool>

Whether SAML authentication is enabled for organization.

§saml_settings: Option<Value>

INTERNAL SAML settings.

§scim_enabled: Option<bool>

Whether SCIM provisioning is enabled for organization.

§scim_settings: Option<Value>

INTERNAL SCIM settings.

§security_settings: Option<Value>

Security settings for the organization.

§allowed_auth_services: Option<Vec<String>>

Allowed authentication providers, empty array means all are allowed.

§allowed_file_upload_content_types: Option<Vec<String>>

Allowed file upload content types

§ip_restrictions: Option<Box<Vec<OrganizationIpRestriction>>>

IP restriction configurations.

§deletion_requested_at: Option<DateTime<Utc>>

The time at which deletion of the organization was requested.

§trial_ends_at: Option<DateTime<Utc>>

The time at which the trial will end.

§trial_starts_at: Option<DateTime<Utc>>

The time at which the trial started.

§previous_url_keys: Option<Vec<String>>

Previously used URL keys for the organization (last 3 are kept and redirected).

§hipaa_compliance_enabled: Option<bool>

Whether HIPAA compliance is enabled for organization.

§theme_settings: Option<Value>

ALPHA Theme settings for the organization.

§release_channel: Option<ReleaseChannel>

The feature release channel the organization belongs to.

§customers_configuration: Option<Value>

Configuration settings for the Customers feature.

§code_intelligence_enabled: Option<bool>

INTERNAL Whether code intelligence is enabled for the organization.

§code_intelligence_repository: Option<String>

INTERNAL GitHub repository in owner/repo format for code intelligence.

§default_feed_summary_schedule: Option<FeedSummarySchedule>

Default schedule for how often feed summaries are generated.

§feed_enabled: Option<bool>

Whether the organization has enabled the feed feature.

§hide_non_primary_organizations: Option<bool>

Whether to hide other organizations for new users signing up with email domains claimed by this organization.

§ai_addon_enabled: Option<bool>

INTERNAL Whether the organization has enabled the AI add-on (which at this point only includes triage suggestions).

§generated_updates_enabled: Option<bool>

INTERNAL Whether the organization has enabled generated updates.

§ai_thread_summaries_enabled: Option<bool>

Whether the organization has enabled resolved thread AI summaries.

§ai_discussion_summaries_enabled: Option<bool>

Whether the organization has enabled AI discussion summaries for issues.

§ai_provider_configuration: Option<Value>

INTERNAL Configure per-modality AI host providers and model families.

§linear_agent_enabled: Option<bool>

Internal Whether the organization has enabled Linear Agent.

§sla_day_count: Option<SLADayCountType>

DEPRECATED Which day count to use for SLA calculations.

§project_updates_reminder_frequency: Option<ProjectUpdateReminderFrequency>

DEPRECATED The frequency at which to prompt for project updates.

§allowed_ai_providers: Option<Vec<String>>

INTERNAL Permitted AI providers.

§users: Option<Box<UserConnection>>

Users associated with the organization.

§teams: Option<Box<TeamConnection>>

Teams associated with the organization.

§project_statuses: Option<Box<Vec<ProjectStatus>>>

The organization’s project statuses.

§integrations: Option<Box<IntegrationConnection>>

Integrations associated with the organization.

§slack_project_channel_integration: Option<Box<Integration>>

The Slack integration used for auto-creating project channels.

§slack_project_channel_prefix: Option<String>

The prefix used for auto-created Slack project channels.

§subscription: Option<Box<PaidSubscription>>

The organization’s subscription to a paid plan.

§user_count: Option<i64>

Number of active users in the organization.

§created_issue_count: Option<i64>

Aproximate number of issues in the organization, including archived ones.

§templates: Option<Box<TemplateConnection>>

Templates associated with the organization.

§labels: Option<Box<IssueLabelConnection>>

Labels associated with the organization.

§project_labels: Option<Box<ProjectLabelConnection>>

Project labels associated with the organization.

§customer_count: Option<i64>

Number of customers in the organization.

§customers_enabled: Option<bool>

Whether the organization is using Customers.

§allow_members_to_invite: Option<bool>

DEPRECATED Whether member users are allowed to send invites.

§restrict_team_creation_to_admins: Option<bool>

DEPRECATED Whether team creation is restricted to admins.

§restrict_label_management_to_admins: Option<bool>

DEPRECATED Whether workspace label creation, update, and deletion is restricted to admins.

Trait Implementations§

Source§

impl Clone for Organization

Source§

fn clone(&self) -> Organization

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 Organization

Source§

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

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

impl Default for Organization

Source§

fn default() -> Organization

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

impl<'de> Deserialize<'de> for Organization

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 Organization

Source§

type FullType = Organization

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 Organization

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§

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