pub struct AutoFillRequest {
pub range: Option<GridRange>,
pub source_and_destination: Option<SourceAndDestination>,
pub use_alternate_series: bool,
}Expand description
AutoFillRequest — the crate’s only autoFill request (issue #1840,
ADR-0083 §1).
Extends a series from source cells into an adjacent destination,
computed entirely by Sheets’ own pattern-detection heuristics: this
crate never sees or predicts the filled values — see auto_fill.rs’s
module docs for what --dry-run can and cannot say about it.
Exactly one of Self::range/Self::source_and_destination is set,
mirroring the API’s own oneof; auto_fill.rs::build_request is the one
site that enforces it.
Fields§
§range: Option<GridRange>Form A (--range): the whole region. Sheets examines it and
decides for itself which cells are the source and which are
filled — so, unlike form B, the destination this writes is only
ever knowable as an upper bound before the request is sent.
source_and_destination: Option<SourceAndDestination>Form B (--source/--dimension/--fill-length): an explicit
source range extended by a caller-chosen length and direction, so
the destination is computable client-side.
use_alternate_series: boolFills using the alternate series Sheets would not otherwise choose
(--alternate-series) — e.g. a copy instead of a linear
progression for a plain numeric run, or vice versa. Always sent
explicitly, matching this file’s other always-present booleans
(e.g. DimensionGroup::collapsed) rather than being omitted when
false.
Trait Implementations§
Source§impl Clone for AutoFillRequest
impl Clone for AutoFillRequest
Source§impl Debug for AutoFillRequest
impl Debug for AutoFillRequest
impl Eq for AutoFillRequest
Source§impl PartialEq for AutoFillRequest
impl PartialEq for AutoFillRequest
Source§impl Serialize for AutoFillRequest
impl Serialize for AutoFillRequest
impl StructuralPartialEq for AutoFillRequest
Auto Trait Implementations§
impl Freeze for AutoFillRequest
impl RefUnwindSafe for AutoFillRequest
impl Send for AutoFillRequest
impl Sync for AutoFillRequest
impl Unpin for AutoFillRequest
impl UnsafeUnpin for AutoFillRequest
impl UnwindSafe for AutoFillRequest
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<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
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> ⓘ
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