pub trait Validate { // Required method fn validate(&self) -> bool; }
オブジェクトの状態の検証用
状態が正しければtrueを、そうでなければfalseを返す