pub struct Data<'a> {
pub name: &'a str,
pub target: &'a str,
pub version: &'a str,
pub repo: Option<&'a str>,
pub meta: PkgMeta,
pub bin_path: &'a Path,
pub install_path: &'a Path,
pub target_related_info: &'a dyn Values,
}
Expand description
Data required to get bin paths
Fields§
§name: &'a str
§target: &'a str
§version: &'a str
§repo: Option<&'a str>
§meta: PkgMeta
§bin_path: &'a Path
§install_path: &'a Path
More target related info, it’s recommend to provide the following keys:
- target_family,
- target_arch
- target_libc
- target_vendor
Auto Trait Implementations§
impl<'a> Freeze for Data<'a>
impl<'a> !RefUnwindSafe for Data<'a>
impl<'a> !Send for Data<'a>
impl<'a> !Sync for Data<'a>
impl<'a> Unpin for Data<'a>
impl<'a> !UnwindSafe for Data<'a>
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