Struct libcoinche::bid::Contract [] [src]

pub struct Contract {
    pub author: PlayerPos,
    pub trump: Suit,
    pub target: Target,
    pub coinche_level: i32,
}

Contract taken by a team.

Composed of a trump suit and a target to reach.

Fields

author

Initial author of the contract.

trump

Trump suit for this game.

target

Target for the contract.

coinche_level

Level of coinche:

  • 0: not coinched
  • 1: coinched
  • 2: surcoinched

Trait Implementations

Derived Implementations

impl Decodable for Contract

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Contract, __D::Error>

impl Encodable for Contract

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl Debug for Contract

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for Contract

fn clone(&self) -> Contract

fn clone_from(&mut self, source: &Self)