pub struct Segment {
pub end_index: Option<i64>,
pub part_index: Option<i64>,
pub start_index: Option<i64>,
pub text: Option<String>,
}Fields§
§end_index: Option<i64>§part_index: Option<i64>§start_index: Option<i64>§text: Option<String>Implementations§
Source§impl Segment
impl Segment
Sourcepub fn part_index(self, value: impl Into<i64>) -> Self
pub fn part_index(self, value: impl Into<i64>) -> Self
Sets the part_index field of this struct.
Sourcepub fn start_index(self, value: impl Into<i64>) -> Self
pub fn start_index(self, value: impl Into<i64>) -> Self
Sets the start_index field of this struct.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Segment
impl<'de> Deserialize<'de> for Segment
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
Auto Trait Implementations§
impl Freeze for Segment
impl RefUnwindSafe for Segment
impl Send for Segment
impl Sync for Segment
impl Unpin for Segment
impl UnwindSafe for Segment
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