Struct dogear::ItemBuilder
source · [−]pub struct ItemBuilder<'b>(_, _);
Expand description
Adds an item with content and structure to a tree builder.
Implementations
sourceimpl<'b> ItemBuilder<'b>
impl<'b> ItemBuilder<'b>
sourcepub fn content<'c>(&'c mut self, content: Content) -> &'c mut ItemBuilder<'b>
pub fn content<'c>(&'c mut self, content: Content) -> &'c mut ItemBuilder<'b>
Sets content info for an item that hasn’t been uploaded or merged yet. We’ll try to dedupe local items with content info to remotely changed items with similar contents and different GUIDs.
sourcepub fn by_children(self, parent_guid: &Guid) -> Result<&'b mut Builder>
pub fn by_children(self, parent_guid: &Guid) -> Result<&'b mut Builder>
Records a parent_guid
from the item’s parent’s children
. See
ParentBuilder::by_children
.
sourcepub fn by_parent_guid(self, parent_guid: Guid) -> Result<&'b mut Builder>
pub fn by_parent_guid(self, parent_guid: Guid) -> Result<&'b mut Builder>
Records a parent_guid
from the item’s parentid
. See
ParentBuilder::by_parent_guid
.
pub fn by_structure(self, parent_guid: &Guid) -> Result<&'b mut Builder>
Auto Trait Implementations
impl<'b> RefUnwindSafe for ItemBuilder<'b>
impl<'b> Send for ItemBuilder<'b>
impl<'b> Sync for ItemBuilder<'b>
impl<'b> Unpin for ItemBuilder<'b>
impl<'b> !UnwindSafe for ItemBuilder<'b>
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