EntryV5

Struct EntryV5 

Source
pub struct EntryV5 { /* private fields */ }
Expand description

An entry in a format 5 watch file

Implementations§

Source§

impl EntryV5

Source

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

Returns the source URL

Source

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

Returns the matching pattern

Source

pub fn paragraph(&self) -> &Paragraph

Get the underlying paragraph

Trait Implementations§

Source§

impl WatchEntry for EntryV5

Source§

fn url(&self) -> String

Returns the URL of the entry
Source§

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

Returns the matching pattern of the entry
Source§

fn version_policy(&self) -> Result<Option<VersionPolicy>, ParseError>

Returns the version policy
Source§

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

Returns the script of the entry
Source§

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

Get the value of a generic option by key
Source§

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

Check if an option is set
Source§

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

The name of the secondary source tarball
Source§

fn ctype(&self) -> Result<Option<ComponentType>, ParseError>

Component type
Source§

fn compression(&self) -> Result<Option<Compression>, ParseError>

Compression method
Source§

fn repack(&self) -> bool

Repack the tarball
Source§

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

Repack suffix
Source§

fn mode(&self) -> Result<Mode, ParseError>

Retrieve the mode of the watch file entry
Source§

fn pretty(&self) -> Result<Pretty, ParseError>

Return the git pretty mode
Source§

fn date(&self) -> String

Set the date string used by the pretty option
Source§

fn gitexport(&self) -> Result<GitExport, ParseError>

Return the git export mode
Source§

fn gitmode(&self) -> Result<GitMode, ParseError>

Return the git mode
Source§

fn pgpmode(&self) -> Result<PgpMode, ParseError>

Return the pgp mode
Source§

fn searchmode(&self) -> Result<SearchMode, ParseError>

Return the search mode
Source§

fn decompress(&self) -> bool

Return the decompression mode
Source§

fn bare(&self) -> bool

Whether to disable all site specific special case code
Source§

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

Set the user-agent string
Source§

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

Use PASV mode for the FTP connection
Source§

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

Extra options to use with the unzip command
Source§

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

Normalize the downloaded web page string
Source§

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

Mangle the upstream version
Source§

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

Mangle the download URL
Source§

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

Mangle the filename
Source§

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

Mangle the PGP signature URL
Source§

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

Mangle the oversionmangle
Source§

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

Mangle the page content
Source§

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

Mangle the directory version
Source§

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

Mangle the version
Source§

fn hrefdecode(&self) -> Option<bool>

Decode hrefs before matching
Source§

fn format_url( &self, package: impl FnOnce() -> String, ) -> Result<Url, ParseError>

Replace all substitutions and return the resulting URL

Auto Trait Implementations§

§

impl Freeze for EntryV5

§

impl !RefUnwindSafe for EntryV5

§

impl !Send for EntryV5

§

impl !Sync for EntryV5

§

impl Unpin for EntryV5

§

impl !UnwindSafe for EntryV5

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