Struct google_language1_beta1::api::TextSpan
source · pub struct TextSpan {
pub begin_offset: Option<i32>,
pub content: Option<String>,
}
Expand description
Represents an output piece of text.
This type is not used in any activity, and only used as part of another schema.
Fields§
§begin_offset: Option<i32>
The API calculates the beginning offset of the content in the original document according to the EncodingType specified in the API request.
content: Option<String>
The content of the output text.
Trait Implementations§
source§impl<'de> Deserialize<'de> for TextSpan
impl<'de> Deserialize<'de> for TextSpan
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 TextSpan
Auto Trait Implementations§
impl RefUnwindSafe for TextSpan
impl Send for TextSpan
impl Sync for TextSpan
impl Unpin for TextSpan
impl UnwindSafe for TextSpan
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