[−][src]Enum cargo_rpm::license::License
Licenses for which we have a defined mapping between SPDX 2.1 labels and the
RPM License
field.
Variants
GNU Affero General Public License v3.0 only https://spdx.org/licenses/AGPL-3.0-only.html
GNU Affero General Public License v3.0 or later https://spdx.org/licenses/AGPL-3.0-or-later.html
Apache License 2.0 https://spdx.org/licenses/Apache-2.0.html
BSD 2-Clause "Simplified" License https://spdx.org/licenses/BSD-2-Clause.html
BSD 3-Clause "New" or "Revised" License https://spdx.org/licenses/BSD-3-Clause.html
Creative Commons Zero v1.0 Universal https://spdx.org/licenses/CC0-1.0.html
GNU General Public License v2.0 only https://spdx.org/licenses/GPL-2.0-only.html
GNU General Public License v2.0 or later https://spdx.org/licenses/GPL-2.0-or-later.html
GNU General Public License v3.0 only https://spdx.org/licenses/GPL-3.0-only.html
GNU General Public License v3.0 or later https://spdx.org/licenses/GPL-3.0-or-later.html
GNU Library General Public License v2 only https://spdx.org/licenses/LGPL-2.0-only.html
GNU Library General Public License v2 or later https://spdx.org/licenses/LGPL-2.0-or-later.html
GNU Lesser General Public License v2.1 only https://spdx.org/licenses/LGPL-2.1-only.html
GNU Lesser General Public License v2.1 or later https://spdx.org/licenses/LGPL-2.1-or-later.html
GNU Lesser General Public License v3.0 only https://spdx.org/licenses/LGPL-3.0-only.html
GNU Lesser General Public License v3.0 or later https://spdx.org/licenses/LGPL-3.0-or-later.html
MIT License https://spdx.org/licenses/MIT.html
Mozilla Public License 2.0 https://spdx.org/licenses/MPL-2.0.html
Implementations
impl License
[src]
pub fn parse(name: &str) -> Result<Self, Error>
[src]
Parse a specific license into the License
enum
pub fn as_rpm_str(&self) -> &'static str
[src]
Return a license name from the Fedora Licenses table: https://fedoraproject.org/wiki/Licensing:Main
Auto Trait Implementations
impl RefUnwindSafe for License
impl Send for License
impl Sync for License
impl Unpin for License
impl UnwindSafe for License
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsAny for T where
T: Any,
[src]
T: Any,
fn as_any(&self) -> &(dyn Any + 'static)
[src]
fn as_mut_any(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,