pub struct User<'a, S: Scope>(/* private fields */);
Implementations§
Source§impl<'a, S: Scope> User<'a, S>
impl<'a, S: Scope> User<'a, S>
pub fn new(entity: Entity<'a, S, Root>, 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, S>
Methods from Deref<Target = Entity<'a, S, User>>§
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§
Auto Trait Implementations§
impl<'a, S> Freeze for User<'a, S>
impl<'a, S> !RefUnwindSafe for User<'a, S>
impl<'a, S> Send for User<'a, S>where
S: Sync,
impl<'a, S> Sync for User<'a, S>where
S: Sync,
impl<'a, S> Unpin for User<'a, S>
impl<'a, S> !UnwindSafe for User<'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