[][src]Struct license::Conditions

pub struct Conditions { /* fields omitted */ }

The conditions of the license.

Examples

let mit = license::from_id_ext("MIT").unwrap();
let cond = mit.conditions();
assert!(cond.license_and_copyright_notice());

Implementations

impl Conditions[src]

pub const fn disclose_sources(self) -> bool[src]

Source code must be made available when the software is distributed.

pub const fn document_changes(self) -> bool[src]

Changes made to the code must be documented.

The license and copyright notice must be included with the software.

pub const fn network_use_is_distribution(self) -> bool[src]

Users who interact with the software via network are given the right to receive a copy of the source code.

pub const fn same_license(self) -> bool[src]

Modifications must be released under the same license.

Trait Implementations

impl Clone for Conditions[src]

impl Copy for Conditions[src]

impl Debug for Conditions[src]

impl Default for Conditions[src]

impl Display for Conditions[src]

impl Eq for Conditions[src]

impl Hash for Conditions[src]

impl Ord for Conditions[src]

impl PartialEq<Conditions> for Conditions[src]

impl PartialOrd<Conditions> for Conditions[src]

impl StructuralEq for Conditions[src]

impl StructuralPartialEq for Conditions[src]

Auto Trait Implementations

impl Send for Conditions

impl Sync for Conditions

impl Unpin for Conditions

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, 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.