pub struct SceneDocument {
pub format: String,
pub version: u16,
pub id: SceneId,
pub title: String,
pub entities: Vec<Entity>,
pub conversation: Vec<ConversationMessage>,
}Expand description
A serializable, owned Konjure scene and its resumable conversation context.
Fields§
§format: StringWire-format name, currently "konjure.scene".
version: u16Wire-format version, currently FORMAT_VERSION.
id: SceneIdStable scene identifier.
title: StringHuman-readable scene title.
entities: Vec<Entity>Owned scene graph nodes.
conversation: Vec<ConversationMessage>Optional ordered conversation history.
Trait Implementations§
Source§impl Clone for SceneDocument
impl Clone for SceneDocument
Source§fn clone(&self) -> SceneDocument
fn clone(&self) -> SceneDocument
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 SceneDocument
impl Debug for SceneDocument
Source§impl<'de> Deserialize<'de> for SceneDocument
impl<'de> Deserialize<'de> for SceneDocument
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 SceneDocument
impl PartialEq for SceneDocument
Source§fn eq(&self, other: &SceneDocument) -> bool
fn eq(&self, other: &SceneDocument) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SceneDocument
impl Serialize for SceneDocument
impl StructuralPartialEq for SceneDocument
Auto Trait Implementations§
impl Freeze for SceneDocument
impl RefUnwindSafe for SceneDocument
impl Send for SceneDocument
impl Sync for SceneDocument
impl Unpin for SceneDocument
impl UnsafeUnpin for SceneDocument
impl UnwindSafe for SceneDocument
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