Struct csml_engine::data::CsmlBotBincode
source · pub struct CsmlBotBincode {
pub id: String,
pub name: String,
pub flows: Vec<CsmlFlow>,
pub native_components: Option<String>,
pub custom_components: Option<String>,
pub default_flow: String,
}
Expand description
Before CSML v1.5, the Bot struct was encoded with bincode. This does not allow to easily change the contents of a bot, and would not allow to add the bot env feature. We need to keep this for backwards compatibility until CSML v2. TO BE REMOVED in CSML v2
Fields
id: String
name: String
flows: Vec<CsmlFlow>
native_components: Option<String>
custom_components: Option<String>
default_flow: String
Implementations
sourceimpl CsmlBotBincode
impl CsmlBotBincode
pub fn to_bot(self) -> SerializeCsmlBot
Trait Implementations
sourceimpl Clone for CsmlBotBincode
impl Clone for CsmlBotBincode
sourcefn clone(&self) -> CsmlBotBincode
fn clone(&self) -> CsmlBotBincode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CsmlBotBincode
impl Debug for CsmlBotBincode
sourceimpl<'de> Deserialize<'de> for CsmlBotBincode
impl<'de> Deserialize<'de> for CsmlBotBincode
sourcefn 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
sourceimpl Serialize for CsmlBotBincode
impl Serialize for CsmlBotBincode
Auto Trait Implementations
impl RefUnwindSafe for CsmlBotBincode
impl Send for CsmlBotBincode
impl Sync for CsmlBotBincode
impl Unpin for CsmlBotBincode
impl UnwindSafe for CsmlBotBincode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more