Struct Source

Source
pub struct Source {
Show 18 fields pub name: String, pub build_depends: Option<Relations>, pub build_depends_indep: Option<Relations>, pub build_depends_arch: Option<Relations>, pub build_conflicts: Option<Relations>, pub build_conflicts_indep: Option<Relations>, pub build_conflicts_arch: Option<Relations>, pub standards_version: Option<String>, pub homepage: Option<Url>, pub section: Option<String>, pub priority: Option<Priority>, pub maintainer: Option<String>, pub uploaders: Option<String>, pub architecture: Option<String>, pub rules_requires_root: Option<bool>, pub testsuite: Option<String>, pub vcs_git: Option<ParsedVcs>, pub vcs_browser: Option<Url>,
}
Expand description

The source package.

Fields§

§name: String

The name of the source package.

§build_depends: Option<Relations>

The packages that this package depends on during build.

§build_depends_indep: Option<Relations>

The packages that this package depends on during build.

§build_depends_arch: Option<Relations>

The packages that this package depends on during build.

§build_conflicts: Option<Relations>

The packages that this package conflicts with during build.

§build_conflicts_indep: Option<Relations>

The packages that this package conflicts with during build.

§build_conflicts_arch: Option<Relations>

The packages that this package conflicts with during build.

§standards_version: Option<String>

The version of the Debian Policy Manual that the package complies with.

§homepage: Option<Url>

The homepage of the package.

§section: Option<String>

The section of the package.

§priority: Option<Priority>

The priority of the package.

§maintainer: Option<String>

The maintainer of the package.

§uploaders: Option<String>

The uploaders of the package.

§architecture: Option<String>

The architecture the package is built for.

§rules_requires_root: Option<bool>

Whether the package’s build rules require root.

§testsuite: Option<String>

The name of the test suite.

§vcs_git: Option<ParsedVcs>

The URL of the Git repository.

§vcs_browser: Option<Url>

The URL to the web interface of the VCS.

Trait Implementations§

Source§

impl Default for Source

Source§

fn default() -> Source

Returns the “default value” for a type. Read more
Source§

impl Display for Source

Source§

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

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

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

Source§

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

Convert a paragraph to this object.
Source§

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

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.

Auto Trait Implementations§

§

impl Freeze for Source

§

impl RefUnwindSafe for Source

§

impl Send for Source

§

impl Sync for Source

§

impl Unpin for Source

§

impl UnwindSafe for Source

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<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,