pub struct PersonFull {Show 21 fields
pub id: u64,
pub full_name: String,
pub primary_number: Option<String>,
pub birth_date: Option<String>,
pub current_age: Option<u8>,
pub birth_city: Option<String>,
pub birth_state_province: Option<String>,
pub birth_country: Option<String>,
pub height: Option<String>,
pub weight: Option<u16>,
pub primary_position: Option<PrimaryPosition>,
pub bat_side: Option<Side>,
pub pitch_hand: Option<Side>,
pub mlb_debut_date: Option<String>,
pub active: Option<bool>,
pub draft_year: Option<u16>,
pub current_team: Option<IdNameLink>,
pub nick_name: Option<String>,
pub pronunciation: Option<String>,
pub stats: Vec<Stat>,
pub drafts: Option<Vec<DraftInfo>>,
}Expand description
Full player info with hydrated currentTeam and inline stats.
Fields§
§id: u64§full_name: String§primary_number: Option<String>§birth_date: Option<String>§current_age: Option<u8>§birth_city: Option<String>§birth_state_province: Option<String>§birth_country: Option<String>§height: Option<String>§weight: Option<u16>§primary_position: Option<PrimaryPosition>§bat_side: Option<Side>§pitch_hand: Option<Side>§mlb_debut_date: Option<String>§active: Option<bool>§draft_year: Option<u16>§current_team: Option<IdNameLink>§nick_name: Option<String>§pronunciation: Option<String>§stats: Vec<Stat>Inline stats from hydration. Contains one entry per requested stat type (season, yearByYear, career, gameLog).
drafts: Option<Vec<DraftInfo>>Trait Implementations§
Source§impl Debug for PersonFull
impl Debug for PersonFull
Source§impl<'de> Deserialize<'de> for PersonFull
impl<'de> Deserialize<'de> for PersonFull
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
Auto Trait Implementations§
impl Freeze for PersonFull
impl RefUnwindSafe for PersonFull
impl Send for PersonFull
impl Sync for PersonFull
impl Unpin for PersonFull
impl UnsafeUnpin for PersonFull
impl UnwindSafe for PersonFull
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