Skip to main content

Contract

Trait Contract 

Source
pub trait Contract: 'static {
    const NAME: &'static str;
    const VERSION: u32;
}
Expand description

A named, versioned interface between boards.

Required Associated Constants§

Source

const NAME: &'static str

Stable lower-case name, such as issues: ASCII letters, digits and hyphens, starting with a letter.

Source

const VERSION: u32

Starts at 1. A breaking change is a new version with its own types.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Contract for Decisions

Source§

const NAME: &'static str = "decisions"

Source§

const VERSION: u32 = 1

Source§

impl Contract for Github

Source§

const NAME: &'static str = "github"

Source§

const VERSION: u32 = 1

Source§

impl Contract for Issues

Source§

const NAME: &'static str = "issues"

Source§

const VERSION: u32 = 1