Struct drawbridge_client::User
source · [−]#[repr(transparent)]pub struct User<'a>(_);Implementations
sourceimpl<'a> User<'a>
impl<'a> User<'a>
pub fn new(entity: Entity<'a>, name: &UserName) -> Self
pub fn create(&self, conf: &UserRecord) -> Result<bool>
pub fn get(&self) -> Result<UserRecord>
pub fn repository(&self, name: &RepositoryName) -> Repository<'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 User<'a>
impl<'a> Send for User<'a>
impl<'a> Sync for User<'a>
impl<'a> Unpin for User<'a>
impl<'a> !UnwindSafe for User<'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