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: PlayerPos

Initial author of the contract.

trump: Suit

Trump suit for this game.

target: Target

Target for the contract.

coinche_level: i32

Level of coinche:

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

Trait Implementations

impl Decodable for Contract
[src]

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

impl Encodable for Contract
[src]

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

impl Debug for Contract
[src]

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

Formats the value using the given formatter.

impl Clone for Contract
[src]

fn clone(&self) -> Contract

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more