pub struct FuzzyMatch {
pub id: String,
pub scope: Option<Vec<String>>,
}
Expand description
FuzzyMatch is used to describe the ID of an object which may be a machine readable UUID or a human readable Name. If the object is a component of a Job, the Scope is a list of IDs starting from Namespace down to the parent object of ID.
e.g. A Task-level service would have scope like,
[“
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§id: String
§scope: Option<Vec<String>>
Implementations§
Source§impl FuzzyMatch
impl FuzzyMatch
pub fn builder() -> FuzzyMatchBuilder
Trait Implementations§
Source§impl Clone for FuzzyMatch
impl Clone for FuzzyMatch
Source§fn clone(&self) -> FuzzyMatch
fn clone(&self) -> FuzzyMatch
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 FuzzyMatch
impl Debug for FuzzyMatch
Source§impl Default for FuzzyMatch
impl Default for FuzzyMatch
Source§fn default() -> FuzzyMatch
fn default() -> FuzzyMatch
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FuzzyMatch
impl<'de> Deserialize<'de> for FuzzyMatch
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FuzzyMatch
impl PartialEq for FuzzyMatch
Source§impl Serialize for FuzzyMatch
impl Serialize for FuzzyMatch
impl StructuralPartialEq for FuzzyMatch
Auto Trait Implementations§
impl Freeze for FuzzyMatch
impl RefUnwindSafe for FuzzyMatch
impl Send for FuzzyMatch
impl Sync for FuzzyMatch
impl Unpin for FuzzyMatch
impl UnwindSafe for FuzzyMatch
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