pub struct Repository<'a, S: Scope>(/* private fields */);
Implementations§
Source§impl<'a, S: Scope> Repository<'a, S>
impl<'a, S: Scope> Repository<'a, S>
pub fn new( entity: Entity<'a, S, User>, name: &RepositoryName, ) -> Repository<'a, S>
pub fn create(&self, conf: &RepositoryConfig) -> Result<bool>
pub fn get(&self) -> Result<RepositoryConfig>
pub fn tag(&self, name: &TagName) -> Tag<'a, S>
Methods from Deref<Target = Entity<'a, S, Repository>>§
Sourcepub fn child<O: Scope>(&self, path: &str) -> Entity<'a, C, O>
pub fn child<O: Scope>(&self, path: &str) -> Entity<'a, C, O>
Returns a child Entity rooted at path
.
pub fn get(&self, limit: u64) -> Result<(Meta, impl Read)>
pub fn get_to(&self, limit: u64, dst: &mut impl Write) -> Result<Meta>
pub fn get_json<T>(&self, limit: u64) -> Result<(Meta, T)>where
for<'de> T: Deserialize<'de>,
pub fn get_bytes(&self, limit: u64) -> Result<(Meta, Vec<u8>)>
pub fn get_string(&self, limit: u64) -> Result<(Meta, String)>
Trait Implementations§
Source§impl<'a, S: Clone + Scope> Clone for Repository<'a, S>
impl<'a, S: Clone + Scope> Clone for Repository<'a, S>
Source§fn clone(&self) -> Repository<'a, S>
fn clone(&self) -> Repository<'a, S>
Returns a copy 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 moreAuto Trait Implementations§
impl<'a, S> Freeze for Repository<'a, S>
impl<'a, S> !RefUnwindSafe for Repository<'a, S>
impl<'a, S> Send for Repository<'a, S>where
S: Sync,
impl<'a, S> Sync for Repository<'a, S>where
S: Sync,
impl<'a, S> Unpin for Repository<'a, S>
impl<'a, S> !UnwindSafe for Repository<'a, S>
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