Struct ayaka_bindings_types::PluginType
source · pub struct PluginType {
pub action: bool,
pub text: Vec<String>,
pub line: Vec<String>,
pub game: bool,
}
Expand description
The bit flags to describe plugin type.
Every plugin should provide a function plugin_type
,
which returns PluginType
.
ⓘ
use ayaka_bindings::*;
#[export]
fn plugin_type() -> PluginType {
PluginType::default()
}
Fields§
§action: bool
The action plugin. This plugin processes the action after they are parsed.
text: Vec<String>
The text plugin. The custom text commands are dealt with this type of plugin.
line: Vec<String>
The line plugin. The custom line types are dealt with this type of plugin.
game: bool
The game plugin. This plugin processes the game properties after it is loaded.
Implementations§
source§impl PluginType
impl PluginType
sourcepub fn builder() -> PluginTypeBuilder
pub fn builder() -> PluginTypeBuilder
Creates a PluginTypeBuilder
instance to build a PluginType
.
Trait Implementations§
source§impl Clone for PluginType
impl Clone for PluginType
source§fn clone(&self) -> PluginType
fn clone(&self) -> PluginType
Returns a copy of the value. Read more
1.0.0 · 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 PluginType
impl Debug for PluginType
source§impl Default for PluginType
impl Default for PluginType
source§fn default() -> PluginType
fn default() -> PluginType
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PluginType
impl<'de> Deserialize<'de> for PluginType
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
Auto Trait Implementations§
impl RefUnwindSafe for PluginType
impl Send for PluginType
impl Sync for PluginType
impl Unpin for PluginType
impl UnwindSafe for PluginType
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