pub struct VassalTask {Show 15 fields
pub id: Uuid,
pub template_task_id: Uuid,
pub suzerain_id: Uuid,
pub suzerain_power: i64,
pub vassal_id: Uuid,
pub vassal_power: i64,
pub good_reward: Vec<CurrencyUnit>,
pub bad_reward: Vec<CurrencyUnit>,
pub good_loyalty: i64,
pub bad_loyalty: i64,
pub task_status: VassalTaskStatus,
pub claimed_by_suzerain: bool,
pub claimed_by_vassal: bool,
pub started_at: Option<DateTime<Utc>>,
pub finish_at: Option<DateTime<Utc>>,
}Expand description
Task in state
Fields§
§id: Uuid§template_task_id: Uuid§suzerain_id: Uuid§suzerain_power: i64§vassal_id: Uuid§vassal_power: i64§good_reward: Vec<CurrencyUnit>§bad_reward: Vec<CurrencyUnit>§good_loyalty: i64§bad_loyalty: i64§task_status: VassalTaskStatus§claimed_by_suzerain: bool§claimed_by_vassal: bool§started_at: Option<DateTime<Utc>>§finish_at: Option<DateTime<Utc>>Trait Implementations§
Source§impl Clone for VassalTask
impl Clone for VassalTask
Source§fn clone(&self) -> VassalTask
fn clone(&self) -> VassalTask
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CustomType for VassalTask
impl CustomType for VassalTask
Source§fn build(builder: TypeBuilder<'_, Self>)
fn build(builder: TypeBuilder<'_, Self>)
Builds the custom type for use with the [
Engine]. Read moreSource§impl Debug for VassalTask
impl Debug for VassalTask
Source§impl<'de> Deserialize<'de> for VassalTask
impl<'de> Deserialize<'de> for VassalTask
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for VassalTask
impl JsonSchema for VassalTask
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
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
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for VassalTask
impl PartialEq for VassalTask
Source§impl Serialize for VassalTask
impl Serialize for VassalTask
Source§impl Tsify for VassalTask
impl Tsify for VassalTask
const DECL: &'static str = "/**\n * Task in state\n */\nexport interface VassalTask {\n id: Uuid;\n template_task_id: Uuid;\n suzerain_id: Uuid;\n suzerain_power: number;\n vassal_id: Uuid;\n vassal_power: number;\n good_reward: CurrencyUnit[];\n bad_reward: CurrencyUnit[];\n good_loyalty: number;\n bad_loyalty: number;\n task_status: VassalTaskStatus;\n claimed_by_suzerain: boolean;\n claimed_by_vassal: boolean;\n started_at: DateTime<Utc> | null;\n finish_at: DateTime<Utc> | null;\n}"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
impl Eq for VassalTask
impl StructuralPartialEq for VassalTask
Auto Trait Implementations§
impl Freeze for VassalTask
impl RefUnwindSafe for VassalTask
impl Send for VassalTask
impl Sync for VassalTask
impl Unpin for VassalTask
impl UnwindSafe for VassalTask
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more