Struct torn_api::faction::BasicOwned
source · pub struct BasicOwned {
pub id: i32,
pub name: <&'static str as IntoOwned>::Owned,
pub leader: i32,
pub respect: i32,
pub age: i16,
pub capacity: i16,
pub best_chain: i32,
pub tag_image: <Option<&'static str> as IntoOwned>::Owned,
pub members: <BTreeMap<i32, Member<'static>> as IntoOwned>::Owned,
pub peace: BTreeMap<i32, DateTime<Utc>>,
pub territory_wars: <Vec<FactionTerritoryWar<'static>> as IntoOwned>::Owned,
}Fields§
§id: i32§name: <&'static str as IntoOwned>::Owned§leader: i32§respect: i32§age: i16§capacity: i16§best_chain: i32§tag_image: <Option<&'static str> as IntoOwned>::Owned§members: <BTreeMap<i32, Member<'static>> as IntoOwned>::Owned§peace: BTreeMap<i32, DateTime<Utc>>§territory_wars: <Vec<FactionTerritoryWar<'static>> as IntoOwned>::OwnedTrait Implementations§
source§impl Clone for BasicOwned
impl Clone for BasicOwned
source§fn clone(&self) -> BasicOwned
fn clone(&self) -> BasicOwned
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 moreAuto Trait Implementations§
impl Freeze for BasicOwned
impl RefUnwindSafe for BasicOwned
impl Send for BasicOwned
impl Sync for BasicOwned
impl Unpin for BasicOwned
impl UnwindSafe for BasicOwned
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