pub struct GoalView {
pub goal: Goal,
pub armed: bool,
pub tokens_used: u64,
}Expand description
A goal as hosts and the model see it: the goal, whether automatic rounds are armed, and what its rounds have spent.
Fields§
§goal: Goal§armed: bool§tokens_used: u64Trait Implementations§
impl Eq for GoalView
Source§impl JsonSchema for GoalView
impl JsonSchema for GoalView
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for GoalView
Auto Trait Implementations§
impl Forget for GoalView
impl Freeze for GoalView
impl Move for GoalView
impl RefUnwindSafe for GoalView
impl Send for GoalView
impl Sync for GoalView
impl Unpin for GoalView
impl UnsafeUnpin for GoalView
impl UnwindSafe for GoalView
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