#[non_exhaustive]pub enum License {
Proprietary,
Gpl,
Bsd,
}Expand description
MySQL plugin license tag. The discriminant matches the
PLUGIN_LICENSE_* constants in include/mysql/plugin.h, so the
value can be embedded directly into the manifest’s license field
at compile time.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Proprietary
Closed-source license. Maps to PLUGIN_LICENSE_PROPRIETARY (0).
Gpl
GNU General Public License. Maps to PLUGIN_LICENSE_GPL (1).
Bsd
BSD-style license. Maps to PLUGIN_LICENSE_BSD (2).
Implementations§
Trait Implementations§
impl Copy for License
impl Eq for License
impl StructuralPartialEq for License
Auto Trait Implementations§
impl Freeze for License
impl RefUnwindSafe for License
impl Send for License
impl Sync for License
impl Unpin for License
impl UnsafeUnpin for License
impl UnwindSafe for License
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