pub struct UpdateSessionDto {
pub name: Option<String>,
pub status: Option<StatusTrue>,
pub expiration_seconds: Option<f64>,
pub messages: Option<Vec<MessageArrayInner>>,
}
Fields§
§name: Option<String>
This is the new name for the session. Maximum length is 40 characters.
status: Option<StatusTrue>
This is the new status for the session.
expiration_seconds: Option<f64>
Session expiration time in seconds. Defaults to 24 hours (86400 seconds) if not set.
messages: Option<Vec<MessageArrayInner>>
This is the updated array of chat messages.
Implementations§
Source§impl UpdateSessionDto
impl UpdateSessionDto
pub fn new() -> UpdateSessionDto
Trait Implementations§
Source§impl Clone for UpdateSessionDto
impl Clone for UpdateSessionDto
Source§fn clone(&self) -> UpdateSessionDto
fn clone(&self) -> UpdateSessionDto
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UpdateSessionDto
impl Debug for UpdateSessionDto
Source§impl Default for UpdateSessionDto
impl Default for UpdateSessionDto
Source§fn default() -> UpdateSessionDto
fn default() -> UpdateSessionDto
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateSessionDto
impl<'de> Deserialize<'de> for UpdateSessionDto
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 UpdateSessionDto
impl PartialEq for UpdateSessionDto
Source§impl Serialize for UpdateSessionDto
impl Serialize for UpdateSessionDto
impl StructuralPartialEq for UpdateSessionDto
Auto Trait Implementations§
impl Freeze for UpdateSessionDto
impl RefUnwindSafe for UpdateSessionDto
impl Send for UpdateSessionDto
impl Sync for UpdateSessionDto
impl Unpin for UpdateSessionDto
impl UnwindSafe for UpdateSessionDto
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