#[non_exhaustive]pub struct RepositoryExternalConnectionInfo {
pub external_connection_name: Option<String>,
pub package_format: Option<PackageFormat>,
pub status: Option<ExternalConnectionStatus>,
}
Expand description
Contains information about the external connection of a repository.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.external_connection_name: Option<String>
The name of the external connection associated with a repository.
package_format: 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.
status: Option<ExternalConnectionStatus>
The status of the external connection of a repository. There is one valid value, Available
.
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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for RepositoryExternalConnectionInfo
impl PartialEq for RepositoryExternalConnectionInfo
source§fn eq(&self, other: &RepositoryExternalConnectionInfo) -> bool
fn eq(&self, other: &RepositoryExternalConnectionInfo) -> bool
self
and other
values to be equal, and is used
by ==
.