pub struct UpdateTextStyleRequest {
pub fields: Option<FieldMask>,
pub range: Option<Range>,
pub text_style: Option<TextStyle>,
}
Expand description
Update the styling of text.
This type is not used in any activity, and only used as part of another schema.
Fields§
§fields: Option<FieldMask>
The fields that should be updated. At least one field must be specified. The root text_style
is implied and should not be specified. A single "*"
can be used as short-hand for listing every field. For example, to update the text style to bold, set fields
to "bold"
. To reset a property to its default value, include its field name in the field mask but leave the field itself unset.
range: Option<Range>
The range of text to style. The range may be extended to include adjacent newlines. If the range fully contains a paragraph belonging to a list, the paragraph’s bullet is also updated with the matching text style. Ranges cannot be inserted inside a relative UpdateTextStyleRequest.
text_style: Option<TextStyle>
The styles to set on the text. If the value for a particular style matches that of the parent, that style will be set to inherit. Certain text style changes may cause other changes in order to to mirror the behavior of the Docs editor. See the documentation of TextStyle for more information.
Trait Implementations§
Source§impl Clone for UpdateTextStyleRequest
impl Clone for UpdateTextStyleRequest
Source§fn clone(&self) -> UpdateTextStyleRequest
fn clone(&self) -> UpdateTextStyleRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for UpdateTextStyleRequest
impl Debug for UpdateTextStyleRequest
Source§impl Default for UpdateTextStyleRequest
impl Default for UpdateTextStyleRequest
Source§fn default() -> UpdateTextStyleRequest
fn default() -> UpdateTextStyleRequest
Source§impl<'de> Deserialize<'de> for UpdateTextStyleRequest
impl<'de> Deserialize<'de> for UpdateTextStyleRequest
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>,
Source§impl Serialize for UpdateTextStyleRequest
impl Serialize for UpdateTextStyleRequest
impl Part for UpdateTextStyleRequest
Auto Trait Implementations§
impl Freeze for UpdateTextStyleRequest
impl RefUnwindSafe for UpdateTextStyleRequest
impl Send for UpdateTextStyleRequest
impl Sync for UpdateTextStyleRequest
impl Unpin for UpdateTextStyleRequest
impl UnwindSafe for UpdateTextStyleRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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