TeamFull

Struct TeamFull 

Source
pub struct TeamFull {
Show 55 fields pub self_link: Option<Url>, pub web_link: Option<Url>, pub resource_type_link: Option<Url>, pub http_etag: Option<String>, pub admins_collection_link: Url, pub archive_link: Option<Url>, pub confirmed_email_addresses_collection_link: Url, pub date_created: DateTime<Utc>, pub deactivated_members_collection_link: Url, pub default_membership_period: Option<usize>, pub default_renewal_period: Option<usize>, pub description: Option<String>, pub display_name: String, pub expired_members_collection_link: Url, pub gpg_keys_collection_link: Url, pub hide_email_addresses: bool, pub homepage_content: Option<String>, pub id: String, pub invited_members_collection_link: Url, pub irc_nicknames_collection_link: Url, pub is_probationary: bool, pub is_team: bool, pub is_ubuntu_coc_signer: bool, pub is_valid: bool, pub jabber_ids_collection_link: Url, pub karma: i64, pub languages_collection_link: Url, pub latitude: Option<f64>, pub logo_link: Url, pub longitude: Option<f64>, pub mailing_list_auto_subscribe_policy: MailingListAutoSubscribePolicy, pub members_collection_link: Url, pub members_details_collection_link: Url, pub membership_policy: SubscriptionPolicy, pub memberships_details_collection_link: Url, pub mugshot_link: Url, pub name: String, pub open_membership_invitations_collection_link: Url, pub participants_collection_link: Url, pub ppas_collection_link: Url, pub preferred_email_address_link: Option<Url>, pub private: bool, pub proposed_members_collection_link: Url, pub recipes_collection_link: Url, pub renewal_policy: RenewalPolicy, pub social_accounts_collection_link: Url, pub sshkeys_collection_link: Url, pub sub_teams_collection_link: Url, pub subscription_policy: SubscriptionPolicy, pub super_teams_collection_link: Url, pub team_description: Option<String>, pub team_owner_link: Url, pub time_zone: String, pub visibility: Visibility, pub wiki_names_collection_link: Url,
}
Expand description

Representation of the team-full resource

Fields§

§self_link: Option<Url>

The canonical link to this resource.

§web_link: Option<Url>

The canonical human-addressable web link to this resource.

§resource_type_link: Option<Url>

The link to the WADL description of this resource.

§http_etag: Option<String>

The value of the HTTP ETag for this resource.

§admins_collection_link: Url

List of this team’s admins.

§archive_link: Option<Url>

Default PPA

The PPA named ‘ppa’ owned by this person.

§confirmed_email_addresses_collection_link: Url

Confirmed emails of this person.

Confirmed emails are the ones in the VALIDATED state

§date_created: DateTime<Utc>

Date Created

§deactivated_members_collection_link: Url

Former members of the team.

§default_membership_period: Option<usize>

Subscription period

Number of days a new subscription lasts before expiring. You can customize the length of an individual subscription when approving it. Leave this empty or set to 0 for subscriptions to never expire.

§default_renewal_period: Option<usize>

Self renewal period

Number of days members can renew their own membership. The number can be from 1 to 3650 (10 years).

§description: Option<String>

Description

Details about interests and goals. Use plain text, paragraphs are preserved and URLs are linked.

§display_name: String

Display Name

Your name as you would like it displayed throughout Launchpad. Most people use their full name here.

§expired_members_collection_link: Url

Expired members of the team.

§gpg_keys_collection_link: Url

List of valid OpenPGP keys ordered by ID

§hide_email_addresses: bool

Hide my email addresses from other Launchpad users

§homepage_content: Option<String>

Homepage Content

Obsolete. Use description.

§id: String

ID

Internal immutable identifier for this person. Only visible by privileged users.

§invited_members_collection_link: Url

Other teams which have been invited to become members of this team.

§irc_nicknames_collection_link: Url

List of IRC nicknames of this Person.

§is_probationary: bool

Is this a probationary user?

§is_team: bool

Is this object a team?

§is_ubuntu_coc_signer: bool

Signed Ubuntu Code of Conduct

§is_valid: bool

This is an active user or a team.

§jabber_ids_collection_link: Url

List of Jabber IDs of this Person.

§karma: i64

Karma

The cached total karma for this person.

§languages_collection_link: Url

List of languages known by this person

§latitude: Option<f64>

The latitude of this object.

§logo_link: Url

Logo

An image of exactly 64x64 pixels that will be displayed in the heading of all pages related to you. Traditionally this is a logo, a small picture or a personal mascot. It should be no bigger than 50kb in size.

§longitude: Option<f64>

The longitude of this object.

§mailing_list_auto_subscribe_policy: MailingListAutoSubscribePolicy

Mailing List Auto-subscription Policy

This attribute determines whether a person is automatically subscribed to a team’s mailing list when the person joins said team.

§members_collection_link: Url

List of direct members with ADMIN or APPROVED status

§members_details_collection_link: Url

Active TeamMemberships for this object’s members.

Active TeamMemberships are the ones with the ADMIN or APPROVED status. The results are ordered using Person.sortingColumns.

§membership_policy: SubscriptionPolicy

Membership policy

The policies that describe who can be a member. The choice of policy reflects the need to build a community (inclusive) versus the need to control Launchpad projects, branches, and PPAs (exclusive).

§memberships_details_collection_link: Url

All TeamMemberships for Teams this Team or Person is an active member of.

§mugshot_link: Url

Mugshot

A large image of exactly 192x192 pixels, that will be displayed on your home page in Launchpad. Traditionally this is a great big picture of your grinning face. Make the most of it! It should be no bigger than 100kb in size.

§name: String

Name

A short unique name, beginning with a lower-case letter or number, and containing only letters, numbers, dots, hyphens, or plus signs.

§open_membership_invitations_collection_link: Url

Open membership invitations.

All TeamMemberships which represent an invitation (to join a team) sent to this person.

§participants_collection_link: Url

All participants of this team.

List of all direct and indirect people and teams who, one way or another, are a part of this team. If you want a method to check if a given person is a member of a team, you should probably look at IPerson.inTeam().

§ppas_collection_link: Url

PPAs for this person.

PPAs owned by the context person ordered by name.

§preferred_email_address_link: Option<Url>

Preferred email address

The preferred email address for this person. The one we’ll use to communicate with them.

§private: bool

This team is private

Private teams are visible only to their members.

§proposed_members_collection_link: Url

People who have applied to join the team.

§recipes_collection_link: Url

All recipes associated with the object.

§renewal_policy: RenewalPolicy

When someone’s membership is about to expire, notify them and

§social_accounts_collection_link: Url

List of Social Accounts of this Person.

§sshkeys_collection_link: Url

List of SSH keys

§sub_teams_collection_link: Url

All subteams of this team.

A subteam is any team that is a member (either directly or indirectly) of this team. As an example, let’s say we have this hierarchy of teams:

Rosetta TranslatorsRosetta pt TranslatorsRosetta pt_BR Translators

In this case, both ‘Rosetta pt Translators’ and ‘Rosetta pt_BR Translators’ are subteams of the ‘Rosetta Translators’ team, and all members of both subteams are considered members of “Rosetta Translators”.

§subscription_policy: SubscriptionPolicy

Membership policy

Obsolete: use membership_policy

§super_teams_collection_link: Url

All superteams of this team.

A superteam is any team that this team is a member of. For example, let’s say we have this hierarchy of teams, and we are the “Rosetta pt_BR Translators”:

Rosetta TranslatorsRosetta pt TranslatorsRosetta pt_BR Translators

In this case, we will return both ‘Rosetta pt Translators’ and ‘Rosetta Translators’, because we are member of both of them.

§team_description: Option<String>

Team Description

Obsolete. Use description.

§team_owner_link: Url

Team Owner

§time_zone: String

The time zone of this object.

§visibility: Visibility

Visibility

Anyone can see a public team’s data. Only team members can see private team data.

§wiki_names_collection_link: Url

All WikiNames of this Person, sorted alphabetically by URL.

Implementations§

Source§

impl TeamFull

Source

pub fn self_(&self) -> Option<Team>

The canonical link to this resource.

Source

pub fn set_self_(&mut self, value: Option<Team>)

Source

pub fn admins<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, PersonPage>, Error>

List of this team’s admins.

Source

pub fn archive(&self) -> Option<Archive>

Default PPA

The PPA named ‘ppa’ owned by this person.

Source

pub fn set_archive(&mut self, value: Option<Archive>)

Source

pub fn confirmed_email_addresses<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, EmailAddressPage>, Error>

Confirmed emails of this person.

Confirmed emails are the ones in the VALIDATED state

Source

pub fn deactivated_members<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, PersonPage>, Error>

Former members of the team.

Source

pub fn expired_members<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, PersonPage>, Error>

Expired members of the team.

Source

pub fn gpg_keys<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, GpgKeyPage>, Error>

List of valid OpenPGP keys ordered by ID

Source

pub fn invited_members<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, PersonPage>, Error>

Other teams which have been invited to become members of this team.

Source

pub fn irc_nicknames<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, IrcIdPage>, Error>

List of IRC nicknames of this Person.

Source

pub fn jabber_ids<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, JabberIdPage>, Error>

List of Jabber IDs of this Person.

Source

pub fn languages<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, LanguagePage>, Error>

List of languages known by this person

Logo

An image of exactly 64x64 pixels that will be displayed in the heading of all pages related to you. Traditionally this is a logo, a small picture or a personal mascot. It should be no bigger than 50kb in size.

Source

pub fn members<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, PersonPage>, Error>

List of direct members with ADMIN or APPROVED status

Source

pub fn members_details<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, TeamMembershipPage>, Error>

Active TeamMemberships for this object’s members.

Active TeamMemberships are the ones with the ADMIN or APPROVED status. The results are ordered using Person.sortingColumns.

Source

pub fn memberships_details<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, TeamMembershipPage>, Error>

All TeamMemberships for Teams this Team or Person is an active member of.

Source

pub fn mugshot(&self) -> HostedFile

Mugshot

A large image of exactly 192x192 pixels, that will be displayed on your home page in Launchpad. Traditionally this is a great big picture of your grinning face. Make the most of it! It should be no bigger than 100kb in size.

Source

pub fn set_mugshot(&mut self, value: HostedFile)

Source

pub fn open_membership_invitations<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, TeamMembershipPage>, Error>

Open membership invitations.

All TeamMemberships which represent an invitation (to join a team) sent to this person.

Source

pub fn participants<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, PersonPage>, Error>

All participants of this team.

List of all direct and indirect people and teams who, one way or another, are a part of this team. If you want a method to check if a given person is a member of a team, you should probably look at IPerson.inTeam().

Source

pub fn ppas<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, ArchivePage>, Error>

PPAs for this person.

PPAs owned by the context person ordered by name.

Source

pub fn preferred_email_address(&self) -> Option<EmailAddress>

Preferred email address

The preferred email address for this person. The one we’ll use to communicate with them.

Source

pub fn set_preferred_email_address(&mut self, value: Option<EmailAddress>)

Source

pub fn proposed_members<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, PersonPage>, Error>

People who have applied to join the team.

Source

pub fn recipes<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, SourcePackageRecipePage>, Error>

All recipes associated with the object.

Source

pub fn social_accounts<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, SocialAccountPage>, Error>

List of Social Accounts of this Person.

Source

pub fn sshkeys<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, SshKeyPage>, Error>

List of SSH keys

Source

pub fn sub_teams<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, TeamPage>, Error>

All subteams of this team.

A subteam is any team that is a member (either directly or indirectly) of this team. As an example, let’s say we have this hierarchy of teams:

Rosetta TranslatorsRosetta pt TranslatorsRosetta pt_BR Translators

In this case, both ‘Rosetta pt Translators’ and ‘Rosetta pt_BR Translators’ are subteams of the ‘Rosetta Translators’ team, and all members of both subteams are considered members of “Rosetta Translators”.

Source

pub fn super_teams<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, TeamPage>, Error>

All superteams of this team.

A superteam is any team that this team is a member of. For example, let’s say we have this hierarchy of teams, and we are the “Rosetta pt_BR Translators”:

Rosetta TranslatorsRosetta pt TranslatorsRosetta pt_BR Translators

In this case, we will return both ‘Rosetta pt Translators’ and ‘Rosetta Translators’, because we are member of both of them.

Source

pub fn team_owner(&self) -> Person

Team Owner

Source

pub fn set_team_owner(&mut self, value: Person)

Source

pub fn wiki_names<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, WikiNamePage>, Error>

All WikiNames of this Person, sorted alphabetically by URL.

Trait Implementations§

Source§

impl Clone for TeamFull

Source§

fn clone(&self) -> TeamFull

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 TeamFull

Source§

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

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

impl<'de> Deserialize<'de> for TeamFull

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 PartialEq for TeamFull

Source§

fn eq(&self, other: &TeamFull) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for TeamFull

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 StructuralPartialEq for TeamFull

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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

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