Struct google_api_proto::google::cloud::documentai::v1beta3::document::page::token::StyleInfo
source · pub struct StyleInfo {Show 15 fields
pub font_size: i32,
pub pixel_font_size: f64,
pub letter_spacing: f64,
pub font_type: String,
pub bold: bool,
pub italic: bool,
pub underlined: bool,
pub strikeout: bool,
pub subscript: bool,
pub superscript: bool,
pub smallcaps: bool,
pub font_weight: i32,
pub handwritten: bool,
pub text_color: Option<Color>,
pub background_color: Option<Color>,
}
Expand description
Font and other text style attributes.
Fields§
§font_size: i32
Font size in points (1
point is ¹⁄₇₂
inches).
pixel_font_size: f64
Font size in pixels, equal to unrounded [font_size][google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo.font_size]
- resolution ÷
72.0
.
letter_spacing: f64
Letter spacing in points.
font_type: String
Name or style of the font.
bold: bool
Whether the text is bold (equivalent to
[font_weight][google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo.font_weight]
is at least 700
).
italic: bool
Whether the text is italic.
underlined: bool
Whether the text is underlined.
strikeout: bool
Whether the text is strikethrough. This feature is not supported yet.
subscript: bool
Whether the text is a subscript. This feature is not supported yet.
superscript: bool
Whether the text is a superscript. This feature is not supported yet.
smallcaps: bool
Whether the text is in small caps. This feature is not supported yet.
font_weight: i32
TrueType weight on a scale 100
(thin) to 1000
(ultra-heavy).
Normal is 400
, bold is 700
.
handwritten: bool
Whether the text is handwritten.
text_color: Option<Color>
Color of the text.
background_color: Option<Color>
Color of the background.
Trait Implementations§
source§impl Message for StyleInfo
impl Message for StyleInfo
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for StyleInfo
impl PartialEq for StyleInfo
impl StructuralPartialEq for StyleInfo
Auto Trait Implementations§
impl Freeze for StyleInfo
impl RefUnwindSafe for StyleInfo
impl Send for StyleInfo
impl Sync for StyleInfo
impl Unpin for StyleInfo
impl UnwindSafe for StyleInfo
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request