Struct google_documentai1_beta2::api::GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo
source · pub struct GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo {Show 15 fields
pub background_color: Option<GoogleTypeColor>,
pub bold: Option<bool>,
pub font_size: Option<i32>,
pub font_type: Option<String>,
pub font_weight: Option<i32>,
pub handwritten: Option<bool>,
pub italic: Option<bool>,
pub letter_spacing: Option<f64>,
pub pixel_font_size: Option<f64>,
pub smallcaps: Option<bool>,
pub strikeout: Option<bool>,
pub subscript: Option<bool>,
pub superscript: Option<bool>,
pub text_color: Option<GoogleTypeColor>,
pub underlined: Option<bool>,
}
Expand description
Font and other text style attributes.
This type is not used in any activity, and only used as part of another schema.
Fields§
§background_color: Option<GoogleTypeColor>
Color of the background.
bold: Option<bool>
Whether the text is bold (equivalent to font_weight is at least 700
).
font_size: Option<i32>
Font size in points (1
point is ¹⁄₇₂
inches).
font_type: Option<String>
Name or style of the font.
font_weight: Option<i32>
TrueType weight on a scale 100
(thin) to 1000
(ultra-heavy). Normal is 400
, bold is 700
.
handwritten: Option<bool>
Whether the text is handwritten.
italic: Option<bool>
Whether the text is italic.
letter_spacing: Option<f64>
Letter spacing in points.
pixel_font_size: Option<f64>
Font size in pixels, equal to unrounded font_size * resolution ÷ 72.0
.
smallcaps: Option<bool>
Whether the text is in small caps.
strikeout: Option<bool>
Whether the text is strikethrough.
subscript: Option<bool>
Whether the text is a subscript.
superscript: Option<bool>
Whether the text is a superscript.
text_color: Option<GoogleTypeColor>
Color of the text.
underlined: Option<bool>
Whether the text is underlined.
Trait Implementations§
source§impl Clone for GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo
impl Clone for GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo
source§fn clone(&self) -> GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo
fn clone(&self) -> GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo
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 Default for GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo
impl Default for GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo
source§fn default() -> GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo
fn default() -> GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo
impl<'de> Deserialize<'de> for GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo
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 Part for GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo
Auto Trait Implementations§
impl RefUnwindSafe for GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo
impl Send for GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo
impl Sync for GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo
impl Unpin for GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo
impl UnwindSafe for GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo
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