pub struct InsertTextRequest {
pub end_of_segment_location: Option<EndOfSegmentLocation>,
pub location: Option<Location>,
pub text: Option<String>,
}
Expand description
Inserts text at the specified location.
This type is not used in any activity, and only used as part of another schema.
Fields§
§end_of_segment_location: Option<EndOfSegmentLocation>
Inserts the text at the end of a header, footer, footnote or the document body.
location: Option<Location>
Inserts the text at a specific index in the document. Text must be inserted inside the bounds of an existing Paragraph. For instance, text cannot be inserted at a table’s start index (i.e. between the table and its preceding paragraph). The text must be inserted in the preceding paragraph.
text: Option<String>
The text to be inserted. Inserting a newline character will implicitly create a new Paragraph at that index. The paragraph style of the new paragraph will be copied from the paragraph at the current insertion index, including lists and bullets. Text styles for inserted text will be determined automatically, generally preserving the styling of neighboring text. In most cases, the text style for the inserted text will match the text immediately before the insertion index. Some control characters (U+0000-U+0008, U+000C-U+001F) and characters from the Unicode Basic Multilingual Plane Private Use Area (U+E000-U+F8FF) will be stripped out of the inserted text.
Trait Implementations§
Source§impl Clone for InsertTextRequest
impl Clone for InsertTextRequest
Source§fn clone(&self) -> InsertTextRequest
fn clone(&self) -> InsertTextRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for InsertTextRequest
impl Debug for InsertTextRequest
Source§impl Default for InsertTextRequest
impl Default for InsertTextRequest
Source§fn default() -> InsertTextRequest
fn default() -> InsertTextRequest
Source§impl<'de> Deserialize<'de> for InsertTextRequest
impl<'de> Deserialize<'de> for InsertTextRequest
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 InsertTextRequest
impl Serialize for InsertTextRequest
impl Part for InsertTextRequest
Auto Trait Implementations§
impl Freeze for InsertTextRequest
impl RefUnwindSafe for InsertTextRequest
impl Send for InsertTextRequest
impl Sync for InsertTextRequest
impl Unpin for InsertTextRequest
impl UnwindSafe for InsertTextRequest
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