Struct google_sheets4::CellFormat
source · pub struct CellFormat {
pub number_format: Option<NumberFormat>,
pub text_direction: Option<String>,
pub padding: Option<Padding>,
pub vertical_alignment: Option<String>,
pub background_color: Option<Color>,
pub horizontal_alignment: Option<String>,
pub text_format: Option<TextFormat>,
pub text_rotation: Option<TextRotation>,
pub hyperlink_display_type: Option<String>,
pub borders: Option<Borders>,
pub wrap_strategy: Option<String>,
}Expand description
The format of a cell.
This type is not used in any activity, and only used as part of another schema.
Fields§
§number_format: Option<NumberFormat>A format describing how number values should be represented to the user.
text_direction: Option<String>The direction of the text in the cell.
padding: Option<Padding>The padding of the cell.
vertical_alignment: Option<String>The vertical alignment of the value in the cell.
background_color: Option<Color>The background color of the cell.
horizontal_alignment: Option<String>The horizontal alignment of the value in the cell.
text_format: Option<TextFormat>The format of the text in the cell (unless overridden by a format run).
text_rotation: Option<TextRotation>The rotation applied to text in a cell
hyperlink_display_type: Option<String>How a hyperlink, if it exists, should be displayed in the cell.
borders: Option<Borders>The borders of the cell.
wrap_strategy: Option<String>The wrap strategy for the value in the cell.
Trait Implementations§
source§impl Clone for CellFormat
impl Clone for CellFormat
source§fn clone(&self) -> CellFormat
fn clone(&self) -> CellFormat
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for CellFormat
impl Debug for CellFormat
source§impl Default for CellFormat
impl Default for CellFormat
source§fn default() -> CellFormat
fn default() -> CellFormat
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CellFormat
impl<'de> Deserialize<'de> for CellFormat
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
source§impl Serialize for CellFormat
impl Serialize for CellFormat
impl Part for CellFormat
Auto Trait Implementations§
impl Freeze for CellFormat
impl RefUnwindSafe for CellFormat
impl Send for CellFormat
impl Sync for CellFormat
impl Unpin for CellFormat
impl UnwindSafe for CellFormat
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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