[][src]Struct sit_core::repository::Repository

pub struct Repository { /* fields omitted */ }

Repository is the container for all SIT artifacts

Methods

impl Repository
[src]

Attempts creating a new repository. Fails with Error::AlreadyExists if a repository already exists.

Attempts creating a new repository with a specified config. Fails with Error::AlreadyExists if a repository already exists.

Opens an existing repository. Fails if there's no valid repository at the given path

Opens and, if necessary, upgrades an existing repository. Allow to specify which particular upgrades should be allowed.

Fails if there's no valid repository at the given path.

Given relative path of path (such as ".sit"), finds a repository in a directory or above

impl Repository
[src]

Populates repository with default files

Returns items path

Returns repository's config

Returns an unordered (as in "order not defined") item iterator

Creates and returns a new item with a unique ID

Creates and returns a new item with a specific name. Will fail if there's an item with the same name.

Finds an item by name (if there is one)

Returns path to modules. The target directory may not exist.

Returns an iterator over the list of modules (directories under modules directory)

Trait Implementations

impl HasPath for Repository
[src]

Returns a reference to a path

impl PartialEq<Repository> for Repository
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for Repository
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Repository

impl Sync for Repository

Blanket Implementations

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

Performs the conversion.

impl<T> From for T
[src]

Performs the conversion.

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

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

The type returned in the event of a conversion error.

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

Performs the conversion.

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

Immutably borrows from an owned value. Read more

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

Mutably borrows from an owned value. Read more

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

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

The type returned in the event of a conversion error.

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

Performs the conversion.

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

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

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T> Same for T

Should always be Self