#[non_exhaustive]pub struct TextDocumentStatisticsBuilder { /* private fields */ }
Expand description
A builder for TextDocumentStatistics
.
Implementations§
source§impl TextDocumentStatisticsBuilder
impl TextDocumentStatisticsBuilder
sourcepub fn indexed_text_documents_count(self, input: i32) -> Self
pub fn indexed_text_documents_count(self, input: i32) -> Self
The number of text documents indexed.
This field is required.sourcepub fn set_indexed_text_documents_count(self, input: Option<i32>) -> Self
pub fn set_indexed_text_documents_count(self, input: Option<i32>) -> Self
The number of text documents indexed.
sourcepub fn get_indexed_text_documents_count(&self) -> &Option<i32>
pub fn get_indexed_text_documents_count(&self) -> &Option<i32>
The number of text documents indexed.
sourcepub fn indexed_text_bytes(self, input: i64) -> Self
pub fn indexed_text_bytes(self, input: i64) -> Self
The total size, in bytes, of the indexed documents.
This field is required.sourcepub fn set_indexed_text_bytes(self, input: Option<i64>) -> Self
pub fn set_indexed_text_bytes(self, input: Option<i64>) -> Self
The total size, in bytes, of the indexed documents.
sourcepub fn get_indexed_text_bytes(&self) -> &Option<i64>
pub fn get_indexed_text_bytes(&self) -> &Option<i64>
The total size, in bytes, of the indexed documents.
sourcepub fn build(self) -> TextDocumentStatistics
pub fn build(self) -> TextDocumentStatistics
Consumes the builder and constructs a TextDocumentStatistics
.
Trait Implementations§
source§impl Clone for TextDocumentStatisticsBuilder
impl Clone for TextDocumentStatisticsBuilder
source§fn clone(&self) -> TextDocumentStatisticsBuilder
fn clone(&self) -> TextDocumentStatisticsBuilder
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 Default for TextDocumentStatisticsBuilder
impl Default for TextDocumentStatisticsBuilder
source§fn default() -> TextDocumentStatisticsBuilder
fn default() -> TextDocumentStatisticsBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for TextDocumentStatisticsBuilder
impl PartialEq for TextDocumentStatisticsBuilder
source§fn eq(&self, other: &TextDocumentStatisticsBuilder) -> bool
fn eq(&self, other: &TextDocumentStatisticsBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TextDocumentStatisticsBuilder
Auto Trait Implementations§
impl RefUnwindSafe for TextDocumentStatisticsBuilder
impl Send for TextDocumentStatisticsBuilder
impl Sync for TextDocumentStatisticsBuilder
impl Unpin for TextDocumentStatisticsBuilder
impl UnwindSafe for TextDocumentStatisticsBuilder
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>
Creates a shared type from an unshared type.