#[non_exhaustive]pub struct RepositoryExternalConnectionInfo { /* private fields */ }
Expand description
Contains information about the external connection of a repository.
Implementations§
source§impl RepositoryExternalConnectionInfo
impl RepositoryExternalConnectionInfo
sourcepub fn external_connection_name(&self) -> Option<&str>
pub fn external_connection_name(&self) -> Option<&str>
The name of the external connection associated with a repository.
sourcepub fn package_format(&self) -> Option<&PackageFormat>
pub fn package_format(&self) -> Option<&PackageFormat>
The package format associated with a repository's external connection. The valid package formats are:
-
npm
: A Node Package Manager (npm) package. -
pypi
: A Python Package Index (PyPI) package. -
maven
: A Maven package that contains compiled code in a distributable format, such as a JAR file. -
nuget
: A NuGet package.
sourcepub fn status(&self) -> Option<&ExternalConnectionStatus>
pub fn status(&self) -> Option<&ExternalConnectionStatus>
The status of the external connection of a repository. There is one valid value, Available
.
source§impl RepositoryExternalConnectionInfo
impl RepositoryExternalConnectionInfo
sourcepub fn builder() -> RepositoryExternalConnectionInfoBuilder
pub fn builder() -> RepositoryExternalConnectionInfoBuilder
Creates a new builder-style object to manufacture RepositoryExternalConnectionInfo
.
Trait Implementations§
source§impl Clone for RepositoryExternalConnectionInfo
impl Clone for RepositoryExternalConnectionInfo
source§fn clone(&self) -> RepositoryExternalConnectionInfo
fn clone(&self) -> RepositoryExternalConnectionInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl PartialEq<RepositoryExternalConnectionInfo> for RepositoryExternalConnectionInfo
impl PartialEq<RepositoryExternalConnectionInfo> for RepositoryExternalConnectionInfo
source§fn eq(&self, other: &RepositoryExternalConnectionInfo) -> bool
fn eq(&self, other: &RepositoryExternalConnectionInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RepositoryExternalConnectionInfo
Auto Trait Implementations§
impl RefUnwindSafe for RepositoryExternalConnectionInfo
impl Send for RepositoryExternalConnectionInfo
impl Sync for RepositoryExternalConnectionInfo
impl Unpin for RepositoryExternalConnectionInfo
impl UnwindSafe for RepositoryExternalConnectionInfo
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