pub struct Tag<'a, S: Scope>(/* private fields */);
Implementations§
Source§impl<'a, S: Scope> Tag<'a, S>
impl<'a, S: Scope> Tag<'a, S>
pub fn new(entity: Entity<'a, S, Repository>, name: &TagName) -> Self
pub fn create(&self, entry: &TagEntry<impl Serialize>) -> Result<bool>
pub fn create_from_path_unsigned( &self, path: impl AsRef<Path>, ) -> Result<(bool, BTreeMap<TreePath, bool>)>
pub fn get(&self) -> Result<TagEntry>
pub fn path(&self, path: &TreePath) -> Node<'a, S>
Methods from Deref<Target = Entity<'a, S, Tag>>§
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 Tag<'a, S>
impl<'a, S> !RefUnwindSafe for Tag<'a, S>
impl<'a, S> Send for Tag<'a, S>where
S: Sync,
impl<'a, S> Sync for Tag<'a, S>where
S: Sync,
impl<'a, S> Unpin for Tag<'a, S>
impl<'a, S> !UnwindSafe for Tag<'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