pub trait IsOptional { // Required methods fn is_optional(&self) -> bool; fn is_required(&self) -> bool; }