BranchFull

Struct BranchFull 

Source
pub struct BranchFull {
Show 42 fields pub self_link: Option<Url>, pub web_link: Option<Url>, pub resource_type_link: Option<Url>, pub http_etag: Option<String>, pub branch_format: BranchFormat, pub branch_type: BranchType, pub bzr_identity: String, pub code_import_link: Url, pub control_format: ControlFormat, pub date_created: DateTime<Utc>, pub date_last_modified: DateTime<Utc>, pub dependent_branches_collection_link: Url, pub description: String, pub display_name: String, pub explicitly_private: bool, pub information_type: InformationType, pub landing_candidates_collection_link: Url, pub landing_targets_collection_link: Url, pub last_mirror_attempt: DateTime<Utc>, pub last_mirrored: DateTime<Utc>, pub last_scanned: DateTime<Utc>, pub last_scanned_id: i64, pub lifecycle_status: BranchLifecycleStatus, pub linked_bugs_collection_link: Url, pub mirror_status_message: String, pub name: String, pub owner_link: Url, pub private: bool, pub project_link: Url, pub recipes_collection_link: Url, pub registrant_link: Url, pub repository_format: BazaarRepositoryFormat, pub reviewer_link: Url, pub revision_count: usize, pub sourcepackage_link: Url, pub spec_links_collection_link: Url, pub subscribers_collection_link: Url, pub subscriptions_collection_link: Url, pub unique_name: String, pub url: Url, pub webhooks_collection_link: Url, pub whiteboard: String,
}
Expand description

Representation of the branch-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.

§branch_format: BranchFormat

Branch Format

§branch_type: BranchType

Branch Type

§bzr_identity: String

Bazaar Identity

The bzr branch path as accessed by Launchpad. If the branch is associated with a product as the primary development focus, then the result should be lp:product. If the branch is related to a series, then lp:product/series. Otherwise the result is lp:~user/product/branch-name.

§code_import_link: Url

The associated CodeImport, if any.

§control_format: ControlFormat

Control Directory

§date_created: DateTime<Utc>

Date Created

§date_last_modified: DateTime<Utc>

Date Last Modified

§dependent_branches_collection_link: Url

Dependent Branches

A collection of the merge proposals that are dependent on this branch.

§description: String

Description

A short description of the changes in this branch.

§display_name: String

Display name

The branch unique_name.

§explicitly_private: bool

Keep branch confidential

Make this branch visible only to its subscribers.

§information_type: InformationType

Information Type

The type of information contained in this branch.

§landing_candidates_collection_link: Url

Landing Candidates

A collection of the merge proposals where this branch is the target branch.

§landing_targets_collection_link: Url

Landing Targets

A collection of the merge proposals where this branch is the source branch.

§last_mirror_attempt: DateTime<Utc>

Last time a mirror of this branch was attempted.

§last_mirrored: DateTime<Utc>

Last time this branch was successfully mirrored.

§last_scanned: DateTime<Utc>

Last time this branch was successfully scanned.

§last_scanned_id: i64

Last scanned revision ID

The head revision ID of the branch when last successfully scanned.

§lifecycle_status: BranchLifecycleStatus

Status

§linked_bugs_collection_link: Url

The bugs linked to this branch.

§mirror_status_message: String

The last message we got when mirroring this branch.

§name: String

Name

Keep very short, unique, and descriptive, because it will be used in URLs. Examples: main, devel, release-1.0, gnome-vfs.

§owner_link: Url

Owner

Either yourself or an exclusive team you are a member of. This controls who can modify the branch.

§private: bool

Branch is confidential

This branch is visible only to its subscribers.

§project_link: Url

Project

The project this branch belongs to.

§recipes_collection_link: Url

All recipes associated with the object.

§registrant_link: Url

The user that registered the branch.

§repository_format: BazaarRepositoryFormat

Repository Format

§reviewer_link: Url

Review Team

The reviewer of a branch is the person or exclusive team that is responsible for reviewing proposals and merging into this branch.

§revision_count: usize

Revision count

The revision number of the tip of the branch.

§sourcepackage_link: Url

The ISourcePackage that this branch belongs to. None if not a package branch.

§spec_links_collection_link: Url

Specification linked to this branch.

§subscribers_collection_link: Url

Persons subscribed to this branch.

§subscriptions_collection_link: Url

BranchSubscriptions associated to this branch.

§unique_name: String

Unique name

Unique name of the branch, including the owner and project names.

§url: Url

Branch URL

The external location where the Bazaar branch is hosted. It is None when the branch is hosted by Launchpad.

§webhooks_collection_link: Url

Webhooks for this target.

§whiteboard: String

Whiteboard

Notes on the current status of the branch.

Implementations§

Source§

impl BranchFull

Source

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

The canonical link to this resource.

Source

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

Source

pub fn code_import(&self) -> CodeImport

The associated CodeImport, if any.

Source

pub fn set_code_import(&mut self, value: CodeImport)

Source

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

Dependent Branches

A collection of the merge proposals that are dependent on this branch.

Source

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

Landing Candidates

A collection of the merge proposals where this branch is the target branch.

Source

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

Landing Targets

A collection of the merge proposals where this branch is the source branch.

Source

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

The bugs linked to this branch.

Source

pub fn owner(&self) -> Person

Owner

Either yourself or an exclusive team you are a member of. This controls who can modify the branch.

Source

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

Source

pub fn project(&self) -> Project

Project

The project this branch belongs to.

Source

pub fn set_project(&mut self, value: Project)

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 registrant(&self) -> Person

The user that registered the branch.

Source

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

Source

pub fn reviewer(&self) -> Person

Review Team

The reviewer of a branch is the person or exclusive team that is responsible for reviewing proposals and merging into this branch.

Source

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

Source

pub fn sourcepackage(&self) -> SourcePackage

The ISourcePackage that this branch belongs to. None if not a package branch.

Source

pub fn set_sourcepackage(&mut self, value: SourcePackage)

Specification linked to this branch.

Source

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

Persons subscribed to this branch.

Source

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

BranchSubscriptions associated to this branch.

Source

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

Webhooks for this target.

Trait Implementations§

Source§

impl Clone for BranchFull

Source§

fn clone(&self) -> BranchFull

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 BranchFull

Source§

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

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

impl<'de> Deserialize<'de> for BranchFull

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 BranchFull

Source§

fn eq(&self, other: &BranchFull) -> 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 BranchFull

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 BranchFull

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