pub struct MatchOptions {
pub major: Option<usize>,
pub minor: Option<usize>,
pub patch: Option<usize>,
pub pre: Option<bool>,
pub dev: Option<bool>,
pub name: Option<String>,
pub architecture: Option<String>,
}
Fields§
§major: Option<usize>
§minor: Option<usize>
§patch: Option<usize>
§pre: Option<bool>
§dev: Option<bool>
§name: Option<String>
§architecture: Option<String>
Implementations§
Source§impl MatchOptions
impl MatchOptions
pub fn version_spec(self, version: &str) -> Self
pub fn major(self, major: usize) -> Self
pub fn minor(self, minor: usize) -> Self
pub fn patch(self, patch: usize) -> Self
pub fn pre(self, pre: bool) -> Self
pub fn dev(self, dev: bool) -> Self
pub fn name(self, name: &str) -> Self
pub fn architecture(self, architecture: &str) -> Self
Trait Implementations§
Source§impl Clone for MatchOptions
impl Clone for MatchOptions
Source§fn clone(&self) -> MatchOptions
fn clone(&self) -> MatchOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MatchOptions
impl Debug for MatchOptions
Source§impl Default for MatchOptions
impl Default for MatchOptions
Source§fn default() -> MatchOptions
fn default() -> MatchOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for MatchOptions
impl PartialEq for MatchOptions
impl Eq for MatchOptions
impl StructuralPartialEq for MatchOptions
Auto Trait Implementations§
impl Freeze for MatchOptions
impl RefUnwindSafe for MatchOptions
impl Send for MatchOptions
impl Sync for MatchOptions
impl Unpin for MatchOptions
impl UnwindSafe for MatchOptions
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