Struct debian_watch::Entry

source ·
pub struct Entry(/* private fields */);

Implementations§

source§

impl Entry

source

pub fn option_list(&self) -> Option<OptionList>

source

pub fn get_option(&self, key: &str) -> Option<String>

source

pub fn has_option(&self, key: &str) -> bool

source

pub fn component(&self) -> Option<String>

The name of the secondary source tarball

source

pub fn ctype(&self) -> Option<ComponentType>

source

pub fn compression(&self) -> Option<Compression>

source

pub fn repack(&self) -> bool

source

pub fn repacksuffix(&self) -> Option<String>

source

pub fn mode(&self) -> Option<Mode>

source

pub fn pretty(&self) -> Pretty

source

pub fn date(&self) -> String

source

pub fn gitexport(&self) -> GitExport

source

pub fn gitmode(&self) -> GitMode

source

pub fn pgpmode(&self) -> PgpMode

source

pub fn searchmode(&self) -> SearchMode

source

pub fn decompress(&self) -> bool

source

pub fn bare(&self) -> bool

source

pub fn user_agent(&self) -> Option<String>

source

pub fn passive(&self) -> Option<bool>

source

pub fn unzipoptions(&self) -> Option<String>

source

pub fn dversionmangle(&self) -> Option<String>

source

pub fn dirversionmangle(&self) -> Option<String>

source

pub fn pagemangle(&self) -> Option<String>

source

pub fn uversionmangle(&self) -> Option<String>

source

pub fn versionmangle(&self) -> Option<String>

source

pub fn hrefdecode(&self) -> bool

source

pub fn downloadurlmangle(&self) -> Option<String>

source

pub fn filenamemangle(&self) -> Option<String>

source

pub fn pgpsigurlmangle(&self) -> Option<String>

source

pub fn oversionmangle(&self) -> Option<String>

source

pub fn opts(&self) -> HashMap<String, String>

Returns options set

source

pub fn url(&self) -> String

Returns the URL of the entry.

source

pub fn matching_pattern(&self) -> Option<String>

Returns the matching pattern of the entry.

source

pub fn version(&self) -> Option<VersionPolicy>

Returns the version policy

source

pub fn script(&self) -> Option<String>

Returns the script of the entry.

source

pub fn format_url(&self, package: impl FnOnce() -> String) -> Url

Replace all substitutions and return the resulting URL.

Trait Implementations§

source§

impl Hash for Entry

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for Entry

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl ToString for Entry

source§

fn to_string(&self) -> String

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

impl Eq for Entry

source§

impl StructuralPartialEq for Entry

Auto Trait Implementations§

§

impl !RefUnwindSafe for Entry

§

impl !Send for Entry

§

impl !Sync for Entry

§

impl Unpin for Entry

§

impl !UnwindSafe for Entry

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, U> TryFrom<U> for T
where U: Into<T>,

§

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

§

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.