Struct drawbridge_client::Repository
source · [−]pub struct Repository<'a>(_);Implementations
sourceimpl<'a> Repository<'a>
impl<'a> Repository<'a>
pub fn new(entity: Entity<'a>, name: &RepositoryName) -> Repository<'a>
pub fn create(&self, conf: &RepositoryConfig) -> Result<bool>
pub fn get(&self) -> Result<RepositoryConfig>
pub fn tag(&self, name: &TagName) -> Tag<'a>
Methods from Deref<Target = Entity<'a>>
pub fn get(&self) -> Result<(u64, Mime, impl Read)>
pub fn get_to(&self, dst: &mut impl Write) -> Result<(u64, Mime)>
pub fn get_json<T>(&self) -> Result<T> where
for<'de> T: Deserialize<'de>,
pub fn get_bytes(&self) -> Result<(Mime, Vec<u8>)>
pub fn get_string(&self) -> Result<(Mime, String)>
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Repository<'a>
impl<'a> Send for Repository<'a>
impl<'a> Sync for Repository<'a>
impl<'a> Unpin for Repository<'a>
impl<'a> !UnwindSafe for Repository<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more