pub struct Node<'a, S: Scope>(/* private fields */);
Implementations§
Source§impl<'a, S: Scope> Node<'a, S>
impl<'a, S: Scope> Node<'a, S>
pub fn new(entity: Entity<'a, S, Node>, path: &TreePath) -> Self
pub fn create_bytes(&self, mime: &Mime, data: impl AsRef<[u8]>) -> Result<bool>
pub fn create_json(&self, mime: &Mime, val: &impl Serialize) -> Result<bool>
pub fn create_from(&self, meta: &Meta, rdr: impl Read) -> Result<bool>
pub fn create_directory<C>( &self, dir: &TreeDirectory<TreeEntry<C>>, ) -> Result<bool>
Methods from Deref<Target = Entity<'a, S, Node>>§
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 Node<'a, S>
impl<'a, S> !RefUnwindSafe for Node<'a, S>
impl<'a, S> Send for Node<'a, S>where
S: Sync,
impl<'a, S> Sync for Node<'a, S>where
S: Sync,
impl<'a, S> Unpin for Node<'a, S>
impl<'a, S> !UnwindSafe for Node<'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