pub struct ChunkModel {
pub chunk: String,
}Fields§
§chunk: StringThe model chunk.
Implementations§
Source§impl ChunkModel
impl ChunkModel
pub fn new(chunk: String) -> ChunkModel
Trait Implementations§
Source§impl Clone for ChunkModel
impl Clone for ChunkModel
Source§fn clone(&self) -> ChunkModel
fn clone(&self) -> ChunkModel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChunkModel
impl Debug for ChunkModel
Source§impl Default for ChunkModel
impl Default for ChunkModel
Source§fn default() -> ChunkModel
fn default() -> ChunkModel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChunkModel
impl<'de> Deserialize<'de> for ChunkModel
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
Source§impl PartialEq for ChunkModel
impl PartialEq for ChunkModel
Source§fn eq(&self, other: &ChunkModel) -> bool
fn eq(&self, other: &ChunkModel) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ChunkModel
impl Serialize for ChunkModel
impl StructuralPartialEq for ChunkModel
Auto Trait Implementations§
impl Freeze for ChunkModel
impl RefUnwindSafe for ChunkModel
impl Send for ChunkModel
impl Sync for ChunkModel
impl Unpin for ChunkModel
impl UnsafeUnpin for ChunkModel
impl UnwindSafe for ChunkModel
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