pub struct ExternalRef {
pub category: Option<String>,
pub comment: Option<String>,
pub locator: Option<String>,
pub type_: Option<String>,
}
Expand description
An External Reference allows a Package to reference an external source of additional information, metadata, enumerations, asset identifiers, or downloadable content believed to be relevant to the Package
This type is not used in any activity, and only used as part of another schema.
Fields§
§category: Option<String>
An External Reference allows a Package to reference an external source of additional information, metadata, enumerations, asset identifiers, or downloadable content believed to be relevant to the Package
comment: Option<String>
Human-readable information about the purpose and target of the reference
locator: Option<String>
The unique string with no spaces necessary to access the package-specific information, metadata, or content within the target location
type_: Option<String>
Type of category (e.g. ‘npm’ for the PACKAGE_MANAGER category)
Trait Implementations§
Source§impl Clone for ExternalRef
impl Clone for ExternalRef
Source§fn clone(&self) -> ExternalRef
fn clone(&self) -> ExternalRef
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ExternalRef
impl Debug for ExternalRef
Source§impl Default for ExternalRef
impl Default for ExternalRef
Source§fn default() -> ExternalRef
fn default() -> ExternalRef
Source§impl<'de> Deserialize<'de> for ExternalRef
impl<'de> Deserialize<'de> for ExternalRef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for ExternalRef
impl Serialize for ExternalRef
impl Part for ExternalRef
Auto Trait Implementations§
impl Freeze for ExternalRef
impl RefUnwindSafe for ExternalRef
impl Send for ExternalRef
impl Sync for ExternalRef
impl Unpin for ExternalRef
impl UnwindSafe for ExternalRef
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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