pub struct Node<'a>(/* private fields */);Implementations§
Source§impl<'a> Node<'a>
impl<'a> Node<'a>
pub fn new(entity: Entity<'a>, 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>>§
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> Freeze for Node<'a>
impl<'a> !RefUnwindSafe for Node<'a>
impl<'a> Send for Node<'a>
impl<'a> Sync for Node<'a>
impl<'a> Unpin for Node<'a>
impl<'a> !UnwindSafe for Node<'a>
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