pub struct MoveDimensionRequest {
pub source: DimensionRange,
pub destination_index: i64,
}Expand description
MoveDimensionRequest — moves the rows or columns spanned by source to
a new position within the same sheet (move-rows/move-columns, issue
#1834).
Nothing is discarded: the moved rows/columns take their values with them
and the rows/columns between the source and the destination shift to
close the gap. Reuses DimensionRange as-is, exactly as
DeleteDimensionRequest does.
Fields§
§source: DimensionRangeThe rows or columns to move.
destination_index: i64The zero-based index the source is moved in front of, in the
sheet’s coordinates before the source is removed from the grid —
the API’s own definition, so a downward move lands source.len()
short of this number. The CLI’s 1-based --before is converted in
structure.rs::move_destination_index, never at a call site.
Trait Implementations§
Source§impl Clone for MoveDimensionRequest
impl Clone for MoveDimensionRequest
Source§impl Debug for MoveDimensionRequest
impl Debug for MoveDimensionRequest
impl Eq for MoveDimensionRequest
Source§impl PartialEq for MoveDimensionRequest
impl PartialEq for MoveDimensionRequest
Source§impl Serialize for MoveDimensionRequest
impl Serialize for MoveDimensionRequest
impl StructuralPartialEq for MoveDimensionRequest
Auto Trait Implementations§
impl Freeze for MoveDimensionRequest
impl RefUnwindSafe for MoveDimensionRequest
impl Send for MoveDimensionRequest
impl Sync for MoveDimensionRequest
impl Unpin for MoveDimensionRequest
impl UnsafeUnpin for MoveDimensionRequest
impl UnwindSafe for MoveDimensionRequest
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,
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