pub struct CargoBinary {
pub name: String,
pub src_path: PathBuf,
}Expand description
A binary target in a Cargo package.
§Examples
use propel_core::CargoBinary;
use std::path::PathBuf;
let bin = CargoBinary {
name: "my-server".to_owned(),
src_path: PathBuf::from("src/main.rs"),
};
assert_eq!(bin.name, "my-server");Fields§
§name: StringBinary name (used with cargo build --bin <name>)
src_path: PathBufAbsolute path to the source file
Trait Implementations§
Source§impl Clone for CargoBinary
impl Clone for CargoBinary
Source§fn clone(&self) -> CargoBinary
fn clone(&self) -> CargoBinary
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 CargoBinary
impl Debug for CargoBinary
Source§impl PartialEq for CargoBinary
impl PartialEq for CargoBinary
impl Eq for CargoBinary
impl StructuralPartialEq for CargoBinary
Auto Trait Implementations§
impl Freeze for CargoBinary
impl RefUnwindSafe for CargoBinary
impl Send for CargoBinary
impl Sync for CargoBinary
impl Unpin for CargoBinary
impl UnsafeUnpin for CargoBinary
impl UnwindSafe for CargoBinary
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.