pub struct EntryV5 { /* private fields */ }Expand description
An entry in a format 5 watch file
Implementations§
Trait Implementations§
Source§impl WatchEntry for EntryV5
impl WatchEntry for EntryV5
Source§fn matching_pattern(&self) -> Option<String>
fn matching_pattern(&self) -> Option<String>
Returns the matching pattern of the entry
Source§fn version_policy(&self) -> Result<Option<VersionPolicy>, ParseError>
fn version_policy(&self) -> Result<Option<VersionPolicy>, ParseError>
Returns the version policy
Source§fn has_option(&self, key: &str) -> bool
fn has_option(&self, key: &str) -> bool
Check if an option is set
Source§fn ctype(&self) -> Result<Option<ComponentType>, ParseError>
fn ctype(&self) -> Result<Option<ComponentType>, ParseError>
Component type
Source§fn compression(&self) -> Result<Option<Compression>, ParseError>
fn compression(&self) -> Result<Option<Compression>, ParseError>
Compression method
Source§fn repacksuffix(&self) -> Option<String>
fn repacksuffix(&self) -> Option<String>
Repack suffix
Source§fn searchmode(&self) -> Result<SearchMode, ParseError>
fn searchmode(&self) -> Result<SearchMode, ParseError>
Return the search mode
Source§fn decompress(&self) -> bool
fn decompress(&self) -> bool
Return the decompression mode
Source§fn user_agent(&self) -> Option<String>
fn user_agent(&self) -> Option<String>
Set the user-agent string
Source§fn unzipoptions(&self) -> Option<String>
fn unzipoptions(&self) -> Option<String>
Extra options to use with the unzip command
Source§fn dversionmangle(&self) -> Option<String>
fn dversionmangle(&self) -> Option<String>
Normalize the downloaded web page string
Source§fn uversionmangle(&self) -> Option<String>
fn uversionmangle(&self) -> Option<String>
Mangle the upstream version
Source§fn downloadurlmangle(&self) -> Option<String>
fn downloadurlmangle(&self) -> Option<String>
Mangle the download URL
Source§fn filenamemangle(&self) -> Option<String>
fn filenamemangle(&self) -> Option<String>
Mangle the filename
Source§fn pgpsigurlmangle(&self) -> Option<String>
fn pgpsigurlmangle(&self) -> Option<String>
Mangle the PGP signature URL
Source§fn oversionmangle(&self) -> Option<String>
fn oversionmangle(&self) -> Option<String>
Mangle the oversionmangle
Source§fn pagemangle(&self) -> Option<String>
fn pagemangle(&self) -> Option<String>
Mangle the page content
Source§fn dirversionmangle(&self) -> Option<String>
fn dirversionmangle(&self) -> Option<String>
Mangle the directory version
Source§fn versionmangle(&self) -> Option<String>
fn versionmangle(&self) -> Option<String>
Mangle the version
Source§fn hrefdecode(&self) -> Option<bool>
fn hrefdecode(&self) -> Option<bool>
Decode hrefs before matching
Source§fn format_url(
&self,
package: impl FnOnce() -> String,
) -> Result<Url, ParseError>
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> 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