pub struct GoogleCloudDocumentaiV1DocumentStyle {
pub background_color: Option<GoogleTypeColor>,
pub color: Option<GoogleTypeColor>,
pub font_family: Option<String>,
pub font_size: Option<GoogleCloudDocumentaiV1DocumentStyleFontSize>,
pub font_weight: Option<String>,
pub text_anchor: Option<GoogleCloudDocumentaiV1DocumentTextAnchor>,
pub text_decoration: Option<String>,
pub text_style: Option<String>,
}Expand description
Annotation for common text style attributes. This adheres to CSS conventions as much as possible.
This type is not used in any activity, and only used as part of another schema.
Fields§
§background_color: Option<GoogleTypeColor>Text background color.
color: Option<GoogleTypeColor>Text color.
font_family: Option<String>Font family such as Arial, Times New Roman. https://www.w3schools.com/cssref/pr_font_font-family.asp
font_size: Option<GoogleCloudDocumentaiV1DocumentStyleFontSize>Font size.
font_weight: Option<String>Font weight. Possible values are normal, bold, bolder, and lighter.
text_anchor: Option<GoogleCloudDocumentaiV1DocumentTextAnchor>Text anchor indexing into the Document.text.
text_decoration: Option<String>Text decoration. Follows CSS standard.
text_style: Option<String>Text style. Possible values are normal, italic, and oblique.
Trait Implementations§
Source§impl Clone for GoogleCloudDocumentaiV1DocumentStyle
impl Clone for GoogleCloudDocumentaiV1DocumentStyle
Source§fn clone(&self) -> GoogleCloudDocumentaiV1DocumentStyle
fn clone(&self) -> GoogleCloudDocumentaiV1DocumentStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GoogleCloudDocumentaiV1DocumentStyle
impl Default for GoogleCloudDocumentaiV1DocumentStyle
Source§fn default() -> GoogleCloudDocumentaiV1DocumentStyle
fn default() -> GoogleCloudDocumentaiV1DocumentStyle
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GoogleCloudDocumentaiV1DocumentStyle
impl<'de> Deserialize<'de> for GoogleCloudDocumentaiV1DocumentStyle
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 GoogleCloudDocumentaiV1DocumentStyle
Auto Trait Implementations§
impl Freeze for GoogleCloudDocumentaiV1DocumentStyle
impl RefUnwindSafe for GoogleCloudDocumentaiV1DocumentStyle
impl Send for GoogleCloudDocumentaiV1DocumentStyle
impl Sync for GoogleCloudDocumentaiV1DocumentStyle
impl Unpin for GoogleCloudDocumentaiV1DocumentStyle
impl UnsafeUnpin for GoogleCloudDocumentaiV1DocumentStyle
impl UnwindSafe for GoogleCloudDocumentaiV1DocumentStyle
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