pub struct BoxContent {
pub text: String,
pub objects: Vec<String>,
pub metadata: Value,
}Fields§
§text: String§objects: Vec<String>§metadata: ValueImplementations§
Source§impl BoxContent
impl BoxContent
pub fn text(value: impl Into<String>) -> BoxContent
Sourcepub fn use_concise_header(&mut self)
pub fn use_concise_header(&mut self)
Retained for source compatibility. All Chatend box headers now omit the internal owner label.
Trait Implementations§
Source§impl Clone for BoxContent
impl Clone for BoxContent
Source§fn clone(&self) -> BoxContent
fn clone(&self) -> BoxContent
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 BoxContent
impl Debug for BoxContent
Source§impl Default for BoxContent
impl Default for BoxContent
Source§fn default() -> BoxContent
fn default() -> BoxContent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BoxContent
impl<'de> Deserialize<'de> for BoxContent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BoxContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BoxContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BoxContent
Source§impl PartialEq for BoxContent
impl PartialEq for BoxContent
Source§impl Serialize for BoxContent
impl Serialize for BoxContent
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for BoxContent
Auto Trait Implementations§
impl Freeze for BoxContent
impl RefUnwindSafe for BoxContent
impl Send for BoxContent
impl Sync for BoxContent
impl Unpin for BoxContent
impl UnsafeUnpin for BoxContent
impl UnwindSafe for BoxContent
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