pub struct NamedRange {
pub name: Option<String>,
pub named_range_id: Option<String>,
pub ranges: Option<Vec<Range>>,
}
Expand description
A collection of Ranges with the same named range ID. Named ranges allow developers to associate parts of a document with an arbitrary user-defined label so their contents can be programmatically read or edited later. A document can contain multiple named ranges with the same name, but every named range has a unique ID. A named range is created with a single Range, and content inserted inside a named range generally expands that range. However, certain document changes can cause the range to be split into multiple ranges. Named ranges are not private. All applications and collaborators that have access to the document can see its named ranges.
This type is not used in any activity, and only used as part of another schema.
Fields§
§name: Option<String>
The name of the named range.
named_range_id: Option<String>
The ID of the named range.
ranges: Option<Vec<Range>>
The ranges that belong to this named range.
Trait Implementations§
Source§impl Clone for NamedRange
impl Clone for NamedRange
Source§fn clone(&self) -> NamedRange
fn clone(&self) -> NamedRange
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for NamedRange
impl Debug for NamedRange
Source§impl Default for NamedRange
impl Default for NamedRange
Source§fn default() -> NamedRange
fn default() -> NamedRange
Source§impl<'de> Deserialize<'de> for NamedRange
impl<'de> Deserialize<'de> for NamedRange
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>,
Source§impl Serialize for NamedRange
impl Serialize for NamedRange
impl Part for NamedRange
Auto Trait Implementations§
impl Freeze for NamedRange
impl RefUnwindSafe for NamedRange
impl Send for NamedRange
impl Sync for NamedRange
impl Unpin for NamedRange
impl UnwindSafe for NamedRange
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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