pub struct Tool {
pub repo_owner: &'static str,
pub repo_name: &'static str,
pub bin_name: &'static str,
pub crate_name: &'static str,
pub current_version: &'static str,
}Expand description
The tool an update is for.
Fields§
§repo_owner: &'static strGitHub owner of the repository the releases live in.
repo_name: &'static strGitHub repository name.
bin_name: &'static strThe executable’s name, without an extension; the archives are named after it.
crate_name: &'static strThe crate cargo install installs it from.
current_version: &'static strThe running version (env!("CARGO_PKG_VERSION") of the CLI crate).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tool
impl RefUnwindSafe for Tool
impl Send for Tool
impl Sync for Tool
impl Unpin for Tool
impl UnsafeUnpin for Tool
impl UnwindSafe for Tool
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