RDescription

Struct RDescription 

Source
pub struct RDescription {
Show 22 fields pub name: String, pub description: String, pub title: String, pub maintainer: Option<String>, pub author: Option<String>, pub authors: Option<RCode>, pub version: Version, pub encoding: Option<String>, pub license: String, pub url: Option<Vec<UrlEntry>>, pub bug_reports: Option<String>, pub imports: Option<Relations>, pub suggests: Option<Relations>, pub depends: Option<Relations>, pub linking_to: Option<Relations>, pub lazy_data: Option<String>, pub collate: Option<String>, pub vignette_builder: Option<String>, pub system_requirements: Option<String>, pub date: Option<String>, pub language: Option<String>, pub repository: Option<String>,
}
Expand description

A DESCRIPTION file.

Fields§

§name: String

The name of the package.

§description: String

A short description of the package.

§title: String

The title of the package.

§maintainer: Option<String>

The maintainer of the package.

§author: Option<String>

Who wrote the the package

§authors: Option<RCode>

‘Authors@R’ is a special field that can contain R code that is evaluated to get the authors and maintainers.

§version: Version

The version of the package.

§encoding: Option<String>

If the DESCRIPTION file is not written in pure ASCII, the encoding field must be used to specify the encoding.

§license: String

The license of the package.

§url: Option<Vec<UrlEntry>>

URLs related to the package.

§bug_reports: Option<String>

The URL or email address where bug reports should be sent.

§imports: Option<Relations>

The packages that this package depends on.

§suggests: Option<Relations>

The packages that this package suggests.

§depends: Option<Relations>

The packages that this package depends on.

§linking_to: Option<Relations>

The packages that this package links to.

§lazy_data: Option<String>

Whether the package has lazy data.

§collate: Option<String>

The order in which R scripts are loaded.

§vignette_builder: Option<String>

The package used to build vignettes.

§system_requirements: Option<String>

The system requirements for the package.

§date: Option<String>

The release date of the current version of the package. Strongly recommended to use the ISO 8601 format: YYYY-MM-DD

§language: Option<String>

Indicates the package documentation is not in English. This should be a comma-separated list of IETF language tags as defined by RFC5646

§repository: Option<String>

The R Repository to use for this package. E.g. “CRAN” or “Bioconductor”

Trait Implementations§

Source§

impl Debug for RDescription

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for RDescription

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<P: Deb822LikeParagraph> FromDeb822Paragraph<P> for RDescription

Source§

fn from_paragraph(para: &P) -> Result<Self, String>

Convert a paragraph to this object.
Source§

impl FromStr for RDescription

Source§

type Err = String

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl PartialEq for RDescription

Source§

fn eq(&self, other: &RDescription) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<P: Deb822LikeParagraph> ToDeb822Paragraph<P> for RDescription

Source§

fn to_paragraph(&self) -> P

Convert this object to a paragraph.
Source§

fn update_paragraph(&self, para: &mut P)

Update the given paragraph with the values from this object.
Source§

impl Eq for RDescription

Source§

impl StructuralPartialEq for RDescription

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ErasedDestructor for T
where T: 'static,