pub struct Entity<'a, C: Scope, E: Scope> { /* private fields */ }
Implementations§
Source§impl<'a, C: Scope, E: Scope> Entity<'a, C, E>
impl<'a, C: Scope, E: Scope> Entity<'a, C, E>
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, C, E> Freeze for Entity<'a, C, E>
impl<'a, C, E> !RefUnwindSafe for Entity<'a, C, E>
impl<'a, C, E> Send for Entity<'a, C, E>
impl<'a, C, E> Sync for Entity<'a, C, E>
impl<'a, C, E> Unpin for Entity<'a, C, E>where
E: Unpin,
impl<'a, C, E> !UnwindSafe for Entity<'a, C, E>
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