pub struct AddPlan {
pub component: ResolvedComponent,
pub dependency: DependencyEntry,
pub feature: String,
pub crate_features: Vec<String>,
pub light_features: Vec<String>,
pub creates_feature: bool,
pub already_installed: bool,
pub requires: Vec<RequiredComponent>,
}Expand description
Подготовленный план добавления компонента.
Fields§
§component: ResolvedComponentРазрешённый компонент.
dependency: DependencyEntryКак записать зависимость.
feature: StringФича, к которой привязывается зависимость.
crate_features: Vec<String>Фичи самого крейта (--features).
light_features: Vec<String>Фичи мета-крейта light, которые нужно включить.
creates_feature: boolБудет ли фича создана (иначе — уже существует).
already_installed: boolКомпонент уже установлен (повторный add — не ошибка).
requires: Vec<RequiredComponent>Дополнительные компоненты из requires.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AddPlan
impl RefUnwindSafe for AddPlan
impl Send for AddPlan
impl Sync for AddPlan
impl Unpin for AddPlan
impl UnsafeUnpin for AddPlan
impl UnwindSafe for AddPlan
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