pub struct AttachDocumentDiskOptions {
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 a disk 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 AttachDocumentDiskOptions
impl RefUnwindSafe for AttachDocumentDiskOptions
impl Send for AttachDocumentDiskOptions
impl Sync for AttachDocumentDiskOptions
impl Unpin for AttachDocumentDiskOptions
impl UnwindSafe for AttachDocumentDiskOptions
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