#[non_exhaustive]pub struct Team {
pub id: TeamId,
pub key: String,
pub name: String,
pub description: Option<String>,
pub color: Option<String>,
pub icon: Option<String>,
pub private: bool,
pub timezone: String,
pub cycles_enabled: bool,
pub issue_estimation_type: String,
pub default_issue_estimate: f64,
}Expand description
A Linear team.
§Example
let client = linear_api::LinearClient::from_env()?;
let team: linear_api::workspace::Team = client.teams().get(&"ENG".into()).await?;
println!("{} ({}) cycles={}", team.name, team.key, team.cycles_enabled);Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: TeamIdTeam ID.
key: StringTeam key used in issue identifiers, e.g. "ENG" in ENG-123.
name: StringTeam name.
description: Option<String>Team description.
color: Option<String>Team color as a hex string.
icon: Option<String>Team icon name.
private: boolWhether the team is private.
timezone: StringThe team’s timezone, e.g. "America/Sao_Paulo".
cycles_enabled: boolWhether cycles are enabled for the team.
issue_estimation_type: StringThe estimation scale in use, e.g. "exponential" or "notUsed".
default_issue_estimate: f64Default estimate applied to unestimated issues.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Team
impl<'de> Deserialize<'de> for Team
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
Auto Trait Implementations§
impl Freeze for Team
impl RefUnwindSafe for Team
impl Send for Team
impl Sync for Team
impl Unpin for Team
impl UnsafeUnpin for Team
impl UnwindSafe for Team
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