pub struct FunctionsState {
pub has_custom_commands: bool,
pub has_custom_object_factory: bool,
}
impl FunctionsState {
pub fn new() -> Self {
Self {
has_custom_commands: false,
has_custom_object_factory: false,
}
}
pub fn get_custom_command_functions(&self) -> Option<()> {
self.has_custom_commands.then_some(())
}
pub fn get_custom_object_factory(&self) -> Option<()> {
self.has_custom_object_factory.then_some(())
}
pub fn get_custom_object_sub_command_functions(&self) -> Option<()> {
None
}
pub fn copy_default_resp(&self) -> Vec<u8> {
Vec::new()
}
}
impl Default for FunctionsState {
fn default() -> Self {
Self::new()
}
}