pub struct CreateNewDocumentMemoryOptions {
pub document_type: String,
pub document_header: Option<NameDescription>,
pub parent_id: Option<DocumentId>,
pub parent_header: Option<NameDescription>,
pub encrypted: bool,
}
Expand description
Options for creating new in-memory document.
Fields§
§document_type: String
Mandatory type of document
document_header: Option<NameDescription>
Optional document name/description
parent_id: Option<DocumentId>
Parent ID of the document. If set, creates a child document.
parent_header: Option<NameDescription>
Name and description of the parent as set for this document. If None, sets the same values as the parent has currently.
encrypted: bool
If document is stored encrypted on all peers’ feeds, defaults to true. NB: Only if this is true, is it impossible for a proxy peer to read the content of the document. Set this to false only if you really know what you are doing.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CreateNewDocumentMemoryOptions
impl RefUnwindSafe for CreateNewDocumentMemoryOptions
impl Send for CreateNewDocumentMemoryOptions
impl Sync for CreateNewDocumentMemoryOptions
impl Unpin for CreateNewDocumentMemoryOptions
impl UnwindSafe for CreateNewDocumentMemoryOptions
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more