pub struct UpdateBordersRequest {
pub bottom: Option<Border>,
pub inner_horizontal: Option<Border>,
pub inner_vertical: Option<Border>,
pub left: Option<Border>,
pub range: Option<GridRange>,
pub right: Option<Border>,
pub top: Option<Border>,
}
Expand description
Updates the borders of a range. If a field is not set in the request, that means the border remains as-is. For example, with two subsequent UpdateBordersRequest: 1. range: A1:A5 { top: RED, bottom: WHITE }
2. range: A1:A5 { left: BLUE }
That would result in A1:A5 having a borders of { top: RED, bottom: WHITE, left: BLUE }
. If you want to clear a border, explicitly set the style to NONE.
This type is not used in any activity, and only used as part of another schema.
Fields§
§bottom: Option<Border>
The border to put at the bottom of the range.
inner_horizontal: Option<Border>
The horizontal border to put within the range.
inner_vertical: Option<Border>
The vertical border to put within the range.
left: Option<Border>
The border to put at the left of the range.
range: Option<GridRange>
The range whose borders should be updated.
right: Option<Border>
The border to put at the right of the range.
top: Option<Border>
The border to put at the top of the range.
Trait Implementations§
Source§impl Clone for UpdateBordersRequest
impl Clone for UpdateBordersRequest
Source§fn clone(&self) -> UpdateBordersRequest
fn clone(&self) -> UpdateBordersRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for UpdateBordersRequest
impl Debug for UpdateBordersRequest
Source§impl Default for UpdateBordersRequest
impl Default for UpdateBordersRequest
Source§fn default() -> UpdateBordersRequest
fn default() -> UpdateBordersRequest
Source§impl<'de> Deserialize<'de> for UpdateBordersRequest
impl<'de> Deserialize<'de> for UpdateBordersRequest
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 UpdateBordersRequest
impl Serialize for UpdateBordersRequest
impl Part for UpdateBordersRequest
Auto Trait Implementations§
impl Freeze for UpdateBordersRequest
impl RefUnwindSafe for UpdateBordersRequest
impl Send for UpdateBordersRequest
impl Sync for UpdateBordersRequest
impl Unpin for UpdateBordersRequest
impl UnwindSafe for UpdateBordersRequest
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