pub struct Tag {
pub name: String,
pub path: Option<PathBuf>,
pub clone: Option<String>,
pub work: Option<String>,
pub priority: Option<i32>,
pub config: PathBuf,
pub location: Location,
}
Fields§
§name: String
§path: Option<PathBuf>
§clone: Option<String>
§work: Option<String>
§priority: Option<i32>
§config: PathBuf
§location: Location
Implementations§
Source§impl Tag
impl Tag
pub fn path_from_location(location: Location) -> PathBuf
pub fn set_location(&mut self, location: Location)
pub fn del_cache_file(&self) -> Result<()>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tag
impl<'de> Deserialize<'de> for Tag
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
impl Eq for Tag
impl StructuralPartialEq for Tag
Auto Trait Implementations§
impl Freeze for Tag
impl RefUnwindSafe for Tag
impl Send for Tag
impl Sync for Tag
impl Unpin for Tag
impl UnwindSafe for Tag
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