pub struct DeveloperMetadataLocation {
pub spreadsheet: Option<bool>,
pub sheet_id: Option<i64>,
pub dimension_range: Option<DimensionRange>,
}Expand description
Where a developer-metadata entry is attached — DeveloperMetadataLocation.
Sheets models this as a union of spreadsheet/sheetId/
dimensionRange; exactly one is set by the one function that builds it
(developer_metadata.rs::resolve_location), matching the
ConditionValue convention for unions elsewhere in this module —
discipline enforced by the builder, not the type.
Fields§
§spreadsheet: Option<bool>true when this entry is attached to the whole spreadsheet.
sheet_id: Option<i64>Set when attached to a whole sheet.
dimension_range: Option<DimensionRange>Set when attached to a row or column span.
Implementations§
Source§impl DeveloperMetadataLocation
impl DeveloperMetadataLocation
Sourcepub fn spreadsheet() -> Self
pub fn spreadsheet() -> Self
A location spanning the whole spreadsheet.
Sourcepub fn dimension(range: DimensionRange) -> Self
pub fn dimension(range: DimensionRange) -> Self
A location spanning a row or column range.
Trait Implementations§
Source§impl Clone for DeveloperMetadataLocation
impl Clone for DeveloperMetadataLocation
Source§impl Debug for DeveloperMetadataLocation
impl Debug for DeveloperMetadataLocation
Source§impl Default for DeveloperMetadataLocation
impl Default for DeveloperMetadataLocation
Source§impl<'de> Deserialize<'de> for DeveloperMetadataLocation
impl<'de> Deserialize<'de> for DeveloperMetadataLocation
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
impl Eq for DeveloperMetadataLocation
impl StructuralPartialEq for DeveloperMetadataLocation
Auto Trait Implementations§
impl Freeze for DeveloperMetadataLocation
impl RefUnwindSafe for DeveloperMetadataLocation
impl Send for DeveloperMetadataLocation
impl Sync for DeveloperMetadataLocation
impl Unpin for DeveloperMetadataLocation
impl UnsafeUnpin for DeveloperMetadataLocation
impl UnwindSafe for DeveloperMetadataLocation
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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