pub struct CpanModule {Show 24 fields
pub maturity: String,
pub release: String,
pub author: String,
pub slop: isize,
pub download_url: Url,
pub module: Vec<Module>,
pub pod_lines: Vec<String>,
pub version: String,
pub deprecated: bool,
pub level: isize,
pub mime: String,
pub date: String,
pub path: String,
pub distribution: String,
pub pod: String,
pub name: String,
pub sloc: isize,
pub stat: Stat,
pub version_numified: f64,
pub binary: bool,
pub id: String,
pub directory: bool,
pub indexed: bool,
pub authorized: bool,
}Expand description
Complete CPAN module metadata
Fields§
§maturity: StringModule maturity level
release: StringRelease identifier
Author name
slop: isizeSource lines of Perl code
download_url: UrlDownload URL for the module
module: Vec<Module>List of modules in this release
pod_lines: Vec<String>POD documentation lines
version: StringModule version
deprecated: boolWhether the module is deprecated
level: isizeNesting level
mime: StringMIME type of the file
date: StringRelease date
path: StringFile path within the distribution
distribution: StringDistribution name
pod: StringPOD documentation content
name: StringModule name
sloc: isizeSource lines of code
stat: StatFile statistics
version_numified: f64Numeric version representation
binary: boolWhether the file is binary
id: StringUnique identifier
directory: boolWhether this is a directory
indexed: boolWhether the module is indexed
Whether the module is authorized
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CpanModule
impl<'de> Deserialize<'de> for CpanModule
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl TryFrom<CpanModule> for UpstreamMetadata
impl TryFrom<CpanModule> for UpstreamMetadata
Source§type Error = ProviderError
type Error = ProviderError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for CpanModule
impl RefUnwindSafe for CpanModule
impl Send for CpanModule
impl Sync for CpanModule
impl Unpin for CpanModule
impl UnsafeUnpin for CpanModule
impl UnwindSafe for CpanModule
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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> ⓘ
Converts
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> ⓘ
Converts
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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.