pub struct DocOptions {
pub guid: String,
pub client_id: u64,
pub gc: bool,
}Expand description
DocOptions used to create a new Doc
use y_octo::DocOptions;
let doc = DocOptions::new()
.with_client_id(1)
.with_guid("guid".into())
.auto_gc(true)
.build();
assert_eq!(doc.guid(), "guid")Fields§
§guid: String§client_id: u64§gc: boolImplementations§
Trait Implementations§
Source§impl Clone for DocOptions
impl Clone for DocOptions
Source§fn clone(&self) -> DocOptions
fn clone(&self) -> DocOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DocOptions
impl Debug for DocOptions
Source§impl Default for DocOptions
impl Default for DocOptions
Source§impl From<DocOptions> for Any
impl From<DocOptions> for Any
Source§fn from(value: DocOptions) -> Self
fn from(value: DocOptions) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DocOptions
impl RefUnwindSafe for DocOptions
impl Send for DocOptions
impl Sync for DocOptions
impl Unpin for DocOptions
impl UnwindSafe for DocOptions
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