[][src]Struct codealong::WorkspaceConfig

pub struct WorkspaceConfig {
    pub config: Config,
    pub repos: Vec<RepoEntry>,
}

Fields

config: Configrepos: Vec<RepoEntry>

Methods

impl WorkspaceConfig[src]

pub const DEFAULT_PATH: &'static str[src]

pub fn exists(dir: &Path) -> bool[src]

pub fn from_dir(dir: &Path) -> Result<Self, Error>[src]

pub fn from_path(path: &Path) -> Result<Self, Error>[src]

pub fn from_file(file: &File) -> Result<Self, Error>[src]

pub fn add(&mut self, repo_info: RepoInfo, path: Option<String>)[src]

Adds the repo to this configuration's list of repos. If a repo with the same name already exists, it is overwritten.

pub fn get_entry(&self, name: &str) -> Option<&RepoEntry>[src]

pub fn merge(&mut self, other: WorkspaceConfig)[src]

Trait Implementations

impl Default for WorkspaceConfig[src]

impl Clone for WorkspaceConfig[src]

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

Performs copy-assignment from source. Read more

impl PartialEq<WorkspaceConfig> for WorkspaceConfig[src]

impl Debug for WorkspaceConfig[src]

impl Serialize for WorkspaceConfig[src]

impl<'de> Deserialize<'de> for WorkspaceConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]