[][src]Enum gtk::License

#[non_exhaustive]pub enum License {
    Unknown,
    Custom,
    Gpl20,
    Gpl30,
    Lgpl21,
    Lgpl30,
    Bsd,
    MitX11,
    Artistic,
    Gpl20Only,
    Gpl30Only,
    Lgpl21Only,
    Lgpl30Only,
    Agpl30,
    Agpl30Only,
    // some variants omitted
}

The type of license for an application.

This enumeration can be expanded at later date.

Variants (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.
Unknown

No license specified

Custom

A license text is going to be specified by the developer

Gpl20

The GNU General Public License, version 2.0 or later

Gpl30

The GNU General Public License, version 3.0 or later

Lgpl21

The GNU Lesser General Public License, version 2.1 or later

Lgpl30

The GNU Lesser General Public License, version 3.0 or later

Bsd

The BSD standard license

MitX11

The MIT/X11 standard license

Artistic

The Artistic License, version 2.0

Gpl20Only

The GNU General Public License, version 2.0 only. Since 3.12.

Gpl30Only

The GNU General Public License, version 3.0 only. Since 3.12.

Lgpl21Only

The GNU Lesser General Public License, version 2.1 only. Since 3.12.

Lgpl30Only

The GNU Lesser General Public License, version 3.0 only. Since 3.12.

Agpl30

The GNU Affero General Public License, version 3.0 or later. Since: 3.22.

Agpl30Only

The GNU Affero General Public License, version 3.0 only. Since: 3.22.27.

Trait Implementations

impl Clone for License[src]

impl Copy for License[src]

impl Debug for License[src]

impl Display for License[src]

impl Eq for License[src]

impl<'a> FromValue<'a> for License[src]

impl<'a> FromValueOptional<'a> for License[src]

impl Hash for License[src]

impl Ord for License[src]

impl PartialEq<License> for License[src]

impl PartialOrd<License> for License[src]

impl SetValue for License[src]

impl StaticType for License[src]

impl StructuralEq for License[src]

impl StructuralPartialEq for License[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.