pub struct Project {
pub name: String,
pub dir: String,
pub url: String,
pub ref_string: String,
pub update_policy: UpdatePolicy,
pub install_script: Vec<String>,
pub uninstall_script: Vec<String>,
}
Expand description
agpm
’s Project structure. It has one extra field. The update_policy
stores
information that determines behavior when interactively trying to update.
Fields§
§name: String
The name of the projects
dir: String
The name of the directory in which the project is going to be stored
url: String
The url from which to git clone the project, it can be a file url
ref_string: String
A string to identify the branch which you want installed
update_policy: UpdatePolicy
Whether to update, ask or never update the project
install_script: Vec<String>
How to install the project. The elements are joined with && before execution
uninstall_script: Vec<String>
How to uninstall the project. The elements are joined with && before execution
Trait Implementations§
Source§impl ProjectIface for Project
impl ProjectIface for Project
Source§fn get_ref_string(&self) -> &str
fn get_ref_string(&self) -> &str
Get the reference string
Source§fn get_install(&self) -> &[String]
fn get_install(&self) -> &[String]
Get the install script
Source§fn get_uninstall(&self) -> &[String]
fn get_uninstall(&self) -> &[String]
Get the uninstall script
Auto Trait Implementations§
impl Freeze for Project
impl RefUnwindSafe for Project
impl Send for Project
impl Sync for Project
impl Unpin for Project
impl UnwindSafe for Project
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