[][src]Struct cargo_toml_builder::types::Workspace

pub struct Workspace { /* fields omitted */ }

Represents the [workspace] section of a Cargo.toml file

Methods

impl Workspace[src]

pub fn new() -> Workspace[src]

Constructs a new, empty Workspace

pub fn member(&mut self, member: &str) -> &mut Self[src]

Adds a single member to this builder

Will not affect any existing members that have been added

pub fn members(&mut self, members: &[String]) -> &mut Self[src]

Adds a set of members to this builder

WILL replace any existing members that have been added

pub fn exclude(&mut self, exclude: &str) -> &mut Self[src]

Adds an exclude to this builder

Will not affect any other excludes that have been added

pub fn excludes(&mut self, excludes: &[String]) -> &mut Self[src]

Adds a set of excludes to this builder

WILL replace any existing excludes that have been added

pub fn build(&self) -> Self[src]

Takes ownership of this builder

Trait Implementations

impl PartialEq<Workspace> for Workspace[src]

impl Default for Workspace[src]

impl Clone for Workspace[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Workspace[src]

Auto Trait Implementations

impl Send for Workspace

impl Sync for Workspace

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]