pub struct AttachDocumentMemoryOptions {
pub document_url: String,
pub document_secret: Option<String>,
pub parent_id: Option<DocumentId>,
pub parent_header: Option<NameDescription>,
}Expand description
Options for attaching an existing document to an in-memory Peermerge
Fields§
§document_url: StringURL of the document. See sharing_info().
document_secret: Option<String>Document secret, if needed.
parent_id: Option<DocumentId>Parent ID of the document. Needs to be set if attaching 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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AttachDocumentMemoryOptions
impl RefUnwindSafe for AttachDocumentMemoryOptions
impl Send for AttachDocumentMemoryOptions
impl Sync for AttachDocumentMemoryOptions
impl Unpin for AttachDocumentMemoryOptions
impl UnwindSafe for AttachDocumentMemoryOptions
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