pub struct SkillLeaseState {
pub skill: String,
pub lease_until_turn: Option<u32>,
}Fields§
§skill: String§lease_until_turn: Option<u32>None = permanent; otherwise the turn the lease expires on.
Trait Implementations§
Source§impl Clone for SkillLeaseState
impl Clone for SkillLeaseState
Source§fn clone(&self) -> SkillLeaseState
fn clone(&self) -> SkillLeaseState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SkillLeaseState
impl Debug for SkillLeaseState
Source§impl<'de> Deserialize<'de> for SkillLeaseState
impl<'de> Deserialize<'de> for SkillLeaseState
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 PartialEq for SkillLeaseState
impl PartialEq for SkillLeaseState
Source§impl Serialize for SkillLeaseState
impl Serialize for SkillLeaseState
impl StructuralPartialEq for SkillLeaseState
Auto Trait Implementations§
impl Freeze for SkillLeaseState
impl RefUnwindSafe for SkillLeaseState
impl Send for SkillLeaseState
impl Sync for SkillLeaseState
impl Unpin for SkillLeaseState
impl UnsafeUnpin for SkillLeaseState
impl UnwindSafe for SkillLeaseState
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