#[repr(C)]pub struct AddonDefinition {
pub signature: i32,
pub api_version: i32,
pub name: *const c_char,
pub version: AddonVersion,
pub author: *const c_char,
pub description: *const c_char,
pub load: RawAddonLoad,
pub unload: Option<RawAddonUnload>,
pub flags: AddonFlags,
pub provider: UpdateProvider,
pub update_link: *const c_char,
}Expand description
Addon definition.
Fields§
§signature: i32Raidcore addon id or random unique negative integer, if not on Raidcore.
api_version: i32Determines which AddonApi struct revision the Loader will pass.
name: *const c_charName of the addon.
version: AddonVersionVersion of the addon.
Author of the addon.
description: *const c_charShort addon description.
load: RawAddonLoadLoad function of the addon.
unload: Option<RawAddonUnload>Unload function of the addon.
Not required if AddonFlags::DisableHotloading is set.
flags: AddonFlagsInformation about the addon
provider: UpdateProviderWhat platform is the the addon hosted on.
update_link: *const c_charLink to the update resource.
Trait Implementations§
Source§impl Clone for AddonDefinition
impl Clone for AddonDefinition
Source§fn clone(&self) -> AddonDefinition
fn clone(&self) -> AddonDefinition
Returns a duplicate 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 AddonDefinition
impl Debug for AddonDefinition
impl Send for AddonDefinition
impl Sync for AddonDefinition
Auto Trait Implementations§
impl Freeze for AddonDefinition
impl RefUnwindSafe for AddonDefinition
impl Unpin for AddonDefinition
impl UnwindSafe for AddonDefinition
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