pub struct NotebookDocumentSyncRegistrationOptions {
pub notebook_selector: Vec<NotebookSelector>,
pub save: Option<bool>,
pub id: Option<String>,
}
Expand description
Registration options specific to a notebook.
@since 3.17.0
Fields§
§notebook_selector: Vec<NotebookSelector>
The notebooks to be synced
save: Option<bool>
Whether save notification should be forwarded to
the server. Will only be honored if mode === notebook
.
id: Option<String>
The id used to register the request. The id can be used to deregister the request again. See also Registration#id.
Trait Implementations§
source§impl Clone for NotebookDocumentSyncRegistrationOptions
impl Clone for NotebookDocumentSyncRegistrationOptions
source§fn clone(&self) -> NotebookDocumentSyncRegistrationOptions
fn clone(&self) -> NotebookDocumentSyncRegistrationOptions
Returns a copy 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<'de> Deserialize<'de> for NotebookDocumentSyncRegistrationOptions
impl<'de> Deserialize<'de> for NotebookDocumentSyncRegistrationOptions
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for NotebookDocumentSyncRegistrationOptions
impl PartialEq for NotebookDocumentSyncRegistrationOptions
source§fn eq(&self, other: &NotebookDocumentSyncRegistrationOptions) -> bool
fn eq(&self, other: &NotebookDocumentSyncRegistrationOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for NotebookDocumentSyncRegistrationOptions
impl StructuralPartialEq for NotebookDocumentSyncRegistrationOptions
Auto Trait Implementations§
impl Freeze for NotebookDocumentSyncRegistrationOptions
impl RefUnwindSafe for NotebookDocumentSyncRegistrationOptions
impl Send for NotebookDocumentSyncRegistrationOptions
impl Sync for NotebookDocumentSyncRegistrationOptions
impl Unpin for NotebookDocumentSyncRegistrationOptions
impl UnwindSafe for NotebookDocumentSyncRegistrationOptions
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