pub struct Text {
pub attributes: Option<Attributes>,
pub shadow: Option<Shadow>,
pub rtf_data: Vec<u8>,
pub vertical_alignment: i32,
pub scale_behavior: i32,
pub margins: Option<EdgeInsets>,
pub is_superscript_standardized: bool,
pub transform: i32,
pub transform_delimiter: String,
pub chord_pro: Option<ChordPro>,
}
Fields§
§attributes: Option<Attributes>
§shadow: Option<Shadow>
§rtf_data: Vec<u8>
§vertical_alignment: i32
§scale_behavior: i32
§margins: Option<EdgeInsets>
§is_superscript_standardized: bool
§transform: i32
§transform_delimiter: String
§chord_pro: Option<ChordPro>
Implementations§
Source§impl Text
impl Text
Sourcepub fn vertical_alignment(&self) -> VerticalAlignment
pub fn vertical_alignment(&self) -> VerticalAlignment
Returns the enum value of vertical_alignment
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_vertical_alignment(&mut self, value: VerticalAlignment)
pub fn set_vertical_alignment(&mut self, value: VerticalAlignment)
Sets vertical_alignment
to the provided enum value.
Sourcepub fn scale_behavior(&self) -> ScaleBehavior
pub fn scale_behavior(&self) -> ScaleBehavior
Returns the enum value of scale_behavior
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_scale_behavior(&mut self, value: ScaleBehavior)
pub fn set_scale_behavior(&mut self, value: ScaleBehavior)
Sets scale_behavior
to the provided enum value.
Sourcepub fn transform(&self) -> Transform
pub fn transform(&self) -> Transform
Returns the enum value of transform
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_transform(&mut self, value: Transform)
pub fn set_transform(&mut self, value: Transform)
Sets transform
to the provided enum value.
Trait Implementations§
Source§impl Message for Text
impl Message for Text
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.impl StructuralPartialEq for Text
Auto Trait Implementations§
impl Freeze for Text
impl RefUnwindSafe for Text
impl Send for Text
impl Sync for Text
impl Unpin for Text
impl UnwindSafe for Text
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