pub struct Agent {
pub account_id: Option<String>,
pub symbol: String,
pub headquarters: String,
pub credits: i64,
pub starting_faction: String,
pub ship_count: Option<i32>,
}Expand description
Agent details.
Fields§
§account_id: Option<String>Account ID that is tied to this agent. Only included on your own agent.
symbol: StringSymbol of the agent.
headquarters: StringThe headquarters of the agent.
credits: i64The number of credits the agent has available. Credits can be negative if funds have been overdrawn.
starting_faction: StringThe faction the agent started with.
ship_count: Option<i32>How many ships are owned by the agent.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Agent
impl<'de> Deserialize<'de> for Agent
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
impl StructuralPartialEq for Agent
Auto Trait Implementations§
impl Freeze for Agent
impl RefUnwindSafe for Agent
impl Send for Agent
impl Sync for Agent
impl Unpin for Agent
impl UnwindSafe for Agent
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