pub struct SupportedFields {
pub signature: i32,
pub name: Option<String>,
pub load: Option<AddonLoad>,
pub unload: Option<AddonUnload>,
pub flags: Option<AddonFlags>,
pub provider: Option<UpdateProvider>,
pub update_link: Option<&'static str>,
pub log_filter: Option<&'static str>,
}Expand description
Fields supported by the export macro.
Fields§
§signature: i32Raidcore addon id or random unique negative integer, if not on Raidcore.
name: Option<String>Name of the addon. Defaults to CARGO_PKG_NAME.
load: Option<AddonLoad>Load function of the addon.
unload: Option<AddonUnload>Unload function of the addon.
flags: Option<AddonFlags>Information about the addon.
provider: Option<UpdateProvider>What platform the addon is hosted on.
update_link: Option<&'static str>Link to the update resource.
log_filter: Option<&'static str>Filter for the log. Same syntax as env_logger.
Auto Trait Implementations§
impl Freeze for SupportedFields
impl RefUnwindSafe for SupportedFields
impl Send for SupportedFields
impl Sync for SupportedFields
impl Unpin for SupportedFields
impl UnsafeUnpin for SupportedFields
impl UnwindSafe for SupportedFields
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