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: UrlList of this team’s admins.
archive_link: Option<Url>Default PPA
The PPA named ‘ppa’ owned by this person.
confirmed_email_addresses_collection_link: UrlConfirmed emails of this person.
Confirmed emails are the ones in the VALIDATED state
date_created: DateTime<Utc>Date Created
deactivated_members_collection_link: UrlFormer 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: StringDisplay Name
Your name as you would like it displayed throughout Launchpad. Most people use their full name here.
expired_members_collection_link: UrlExpired members of the team.
gpg_keys_collection_link: UrlList of valid OpenPGP keys ordered by ID
hide_email_addresses: boolHide my email addresses from other Launchpad users
homepage_content: Option<String>Homepage Content
Obsolete. Use description.
id: StringID
Internal immutable identifier for this person. Only visible by privileged users.
invited_members_collection_link: UrlOther teams which have been invited to become members of this team.
irc_nicknames_collection_link: UrlList of IRC nicknames of this Person.
is_probationary: boolIs this a probationary user?
is_team: boolIs this object a team?
is_ubuntu_coc_signer: boolSigned Ubuntu Code of Conduct
is_valid: boolThis is an active user or a team.
jabber_ids_collection_link: UrlList of Jabber IDs of this Person.
karma: i64Karma
The cached total karma for this person.
languages_collection_link: UrlList of languages known by this person
latitude: Option<f64>The latitude of this object.
logo_link: UrlLogo
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: MailingListAutoSubscribePolicyMailing 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: UrlList of direct members with ADMIN or APPROVED status
members_details_collection_link: UrlActive 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: SubscriptionPolicyMembership 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: UrlAll TeamMemberships for Teams this Team or Person is an active member of.
mugshot_link: UrlMugshot
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: StringName
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: UrlOpen membership invitations.
All TeamMemberships which represent an invitation (to join a team) sent to this person.
participants_collection_link: UrlAll 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: UrlPPAs 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: boolThis team is private
Private teams are visible only to their members.
proposed_members_collection_link: UrlPeople who have applied to join the team.
recipes_collection_link: UrlAll recipes associated with the object.
renewal_policy: RenewalPolicyWhen someone’s membership is about to expire, notify them and
List of Social Accounts of this Person.
sshkeys_collection_link: UrlList of SSH keys
sub_teams_collection_link: UrlAll 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: SubscriptionPolicyMembership policy
Obsolete: use membership_policy
super_teams_collection_link: UrlAll 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: UrlTeam Owner
time_zone: StringThe time zone of this object.
visibility: VisibilityVisibility
Anyone can see a public team’s data. Only team members can see private team data.
wiki_names_collection_link: UrlAll WikiNames of this Person, sorted alphabetically by URL.
Implementations§
Source§impl TeamFull
impl TeamFull
pub fn set_self_(&mut self, value: Option<Team>)
Sourcepub fn admins<'a>(
&'a self,
client: &'a dyn Client,
) -> Result<PagedCollection<'a, PersonPage>, Error>
pub fn admins<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, PersonPage>, Error>
List of this team’s admins.
pub fn set_archive(&mut self, value: Option<Archive>)
Sourcepub fn confirmed_email_addresses<'a>(
&'a self,
client: &'a dyn Client,
) -> Result<PagedCollection<'a, EmailAddressPage>, Error>
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
Sourcepub fn deactivated_members<'a>(
&'a self,
client: &'a dyn Client,
) -> Result<PagedCollection<'a, PersonPage>, Error>
pub fn deactivated_members<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, PersonPage>, Error>
Former members of the team.
Sourcepub fn expired_members<'a>(
&'a self,
client: &'a dyn Client,
) -> Result<PagedCollection<'a, PersonPage>, Error>
pub fn expired_members<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, PersonPage>, Error>
Expired members of the team.
Sourcepub fn gpg_keys<'a>(
&'a self,
client: &'a dyn Client,
) -> Result<PagedCollection<'a, GpgKeyPage>, Error>
pub fn gpg_keys<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, GpgKeyPage>, Error>
List of valid OpenPGP keys ordered by ID
Sourcepub fn invited_members<'a>(
&'a self,
client: &'a dyn Client,
) -> Result<PagedCollection<'a, PersonPage>, Error>
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.
Sourcepub fn irc_nicknames<'a>(
&'a self,
client: &'a dyn Client,
) -> Result<PagedCollection<'a, IrcIdPage>, Error>
pub fn irc_nicknames<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, IrcIdPage>, Error>
List of IRC nicknames of this Person.
Sourcepub fn jabber_ids<'a>(
&'a self,
client: &'a dyn Client,
) -> Result<PagedCollection<'a, JabberIdPage>, Error>
pub fn jabber_ids<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, JabberIdPage>, Error>
List of Jabber IDs of this Person.
Sourcepub fn languages<'a>(
&'a self,
client: &'a dyn Client,
) -> Result<PagedCollection<'a, LanguagePage>, Error>
pub fn languages<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, LanguagePage>, Error>
List of languages known by this person
Sourcepub fn logo(&self) -> HostedFile
pub fn logo(&self) -> HostedFile
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.
pub fn set_logo(&mut self, value: HostedFile)
Sourcepub fn members<'a>(
&'a self,
client: &'a dyn Client,
) -> Result<PagedCollection<'a, PersonPage>, Error>
pub fn members<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, PersonPage>, Error>
List of direct members with ADMIN or APPROVED status
Sourcepub fn members_details<'a>(
&'a self,
client: &'a dyn Client,
) -> Result<PagedCollection<'a, TeamMembershipPage>, Error>
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.
Sourcepub fn memberships_details<'a>(
&'a self,
client: &'a dyn Client,
) -> Result<PagedCollection<'a, TeamMembershipPage>, Error>
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.
Sourcepub fn mugshot(&self) -> HostedFile
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.
pub fn set_mugshot(&mut self, value: HostedFile)
Sourcepub fn open_membership_invitations<'a>(
&'a self,
client: &'a dyn Client,
) -> Result<PagedCollection<'a, TeamMembershipPage>, Error>
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.
Sourcepub fn participants<'a>(
&'a self,
client: &'a dyn Client,
) -> Result<PagedCollection<'a, PersonPage>, Error>
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().
Sourcepub fn ppas<'a>(
&'a self,
client: &'a dyn Client,
) -> Result<PagedCollection<'a, ArchivePage>, Error>
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.
Sourcepub fn preferred_email_address(&self) -> Option<EmailAddress>
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.
pub fn set_preferred_email_address(&mut self, value: Option<EmailAddress>)
Sourcepub fn proposed_members<'a>(
&'a self,
client: &'a dyn Client,
) -> Result<PagedCollection<'a, PersonPage>, Error>
pub fn proposed_members<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, PersonPage>, Error>
People who have applied to join the team.
Sourcepub fn recipes<'a>(
&'a self,
client: &'a dyn Client,
) -> Result<PagedCollection<'a, SourcePackageRecipePage>, Error>
pub fn recipes<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, SourcePackageRecipePage>, Error>
All recipes associated with the object.
List of Social Accounts of this Person.
Sourcepub fn sshkeys<'a>(
&'a self,
client: &'a dyn Client,
) -> Result<PagedCollection<'a, SshKeyPage>, Error>
pub fn sshkeys<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, SshKeyPage>, Error>
List of SSH keys
Sourcepub fn sub_teams<'a>(
&'a self,
client: &'a dyn Client,
) -> Result<PagedCollection<'a, TeamPage>, Error>
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”.
Sourcepub fn super_teams<'a>(
&'a self,
client: &'a dyn Client,
) -> Result<PagedCollection<'a, TeamPage>, Error>
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.
Sourcepub fn team_owner(&self) -> Person
pub fn team_owner(&self) -> Person
Team Owner
pub fn set_team_owner(&mut self, value: Person)
Sourcepub fn wiki_names<'a>(
&'a self,
client: &'a dyn Client,
) -> Result<PagedCollection<'a, WikiNamePage>, Error>
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.