pub enum LicenceTag {
Cc0,
Permissive,
NonCommercial,
NoRedistribution,
Unknown,
}Expand description
Licence provenance for user-supplied instrument content.
This is a coarse, export-safety classification — not a full SPDX licence identifier. The
resolver treats LicenceTag::Unknown as the safe default (fail closed on redistribution).
Variants§
Cc0
Public-domain-equivalent (CC0). Freely redistributable.
Permissive
A permissive licence allowing commercial use and redistribution (e.g. CC-BY, MIT-like).
NonCommercial
Non-commercial only (e.g. CC-BY-NC). Must not be redistributed in a commercial artifact.
NoRedistribution
Redistribution prohibited (personal-use / evaluation licences).
Unknown
Provenance unknown — treated as the most restrictive case.
Implementations§
Source§impl LicenceTag
impl LicenceTag
Sourcepub fn allows_redistribution(self) -> bool
pub fn allows_redistribution(self) -> bool
May content under this tag be redistributed / baked into an exported, shared artifact?
Fails closed: only explicitly-free tags return true.
Trait Implementations§
Source§impl Clone for LicenceTag
impl Clone for LicenceTag
impl Copy for LicenceTag
Source§impl Debug for LicenceTag
impl Debug for LicenceTag
impl Eq for LicenceTag
Source§impl PartialEq for LicenceTag
impl PartialEq for LicenceTag
impl StructuralPartialEq for LicenceTag
Auto Trait Implementations§
impl Freeze for LicenceTag
impl RefUnwindSafe for LicenceTag
impl Send for LicenceTag
impl Sync for LicenceTag
impl Unpin for LicenceTag
impl UnsafeUnpin for LicenceTag
impl UnwindSafe for LicenceTag
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