#[non_exhaustive]pub struct Declaration {
pub licence: String,
pub valid_from: String,
pub valid_to: Option<String>,
}Expand description
One dated entry of a publisher’s declarations (9.2, spec-0.4.3): its function may be
computed over inputs under licence while the entry is open, the result carrying that
licence (8.5). Entries are dated as keys are, and never removed, only closed.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.licence: StringThe declared licence, by the grammar and limits of 8.1, compared byte for byte.
valid_from: StringStart of the entry’s window (inclusive), an instant.
valid_to: Option<String>End of the window (exclusive), later than valid_from; None is open-ended.
Implementations§
Trait Implementations§
Source§impl Clone for Declaration
impl Clone for Declaration
Source§impl Debug for Declaration
impl Debug for Declaration
impl Eq for Declaration
Source§impl Hash for Declaration
impl Hash for Declaration
Source§impl PartialEq for Declaration
impl PartialEq for Declaration
impl StructuralPartialEq for Declaration
Auto Trait Implementations§
impl Freeze for Declaration
impl RefUnwindSafe for Declaration
impl Send for Declaration
impl Sync for Declaration
impl Unpin for Declaration
impl UnsafeUnpin for Declaration
impl UnwindSafe for Declaration
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