pub struct AddInDescriptor {
pub name: &'static str,
pub description: &'static str,
pub functions: &'static [FunctionRegistration],
pub commands: &'static [CommandRegistration],
}Expand description
Static metadata for one XLL and its generated registrations.
Fields§
§name: &'static strExcel-visible add-in name.
description: &'static strExcel-visible add-in description.
functions: &'static [FunctionRegistration]Worksheet function registrations.
commands: &'static [CommandRegistration]Command registrations.
Implementations§
Source§impl AddInDescriptor
impl AddInDescriptor
Sourcepub const fn new(
name: &'static str,
description: &'static str,
functions: &'static [FunctionRegistration],
) -> Self
pub const fn new( name: &'static str, description: &'static str, functions: &'static [FunctionRegistration], ) -> Self
Creates add-in metadata without commands.
Sourcepub const fn commands(self, commands: &'static [CommandRegistration]) -> Self
pub const fn commands(self, commands: &'static [CommandRegistration]) -> Self
Adds static command metadata to this descriptor.
Sourcepub fn validate(&self) -> Result<(), RegistrationError>
pub fn validate(&self) -> Result<(), RegistrationError>
Validates the add-in and every contained registration descriptor.
Trait Implementations§
Source§impl Clone for AddInDescriptor
impl Clone for AddInDescriptor
impl Copy for AddInDescriptor
Auto Trait Implementations§
impl Freeze for AddInDescriptor
impl RefUnwindSafe for AddInDescriptor
impl Send for AddInDescriptor
impl Sync for AddInDescriptor
impl Unpin for AddInDescriptor
impl UnsafeUnpin for AddInDescriptor
impl UnwindSafe for AddInDescriptor
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