Struct drawbridge_client::Tag
source · [−]pub struct Tag<'a>(_);Implementations
sourceimpl<'a> Tag<'a>
impl<'a> Tag<'a>
pub fn new(entity: Entity<'a>, 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>
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> !RefUnwindSafe for Tag<'a>
impl<'a> Send for Tag<'a>
impl<'a> Sync for Tag<'a>
impl<'a> Unpin for Tag<'a>
impl<'a> !UnwindSafe for Tag<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more