#[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 ==
.impl StructuralPartialEq for RepositoryExternalConnectionInfo
Auto Trait Implementations§
impl Freeze for RepositoryExternalConnectionInfo
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more