pub trait Character {
    // Required methods
    fn id(&self) -> &str;
    fn name(&self) -> Option<&str>;
    fn friends(&self, ctx: &Database) -> Vec<CharacterValue>;
    fn appears_in(&self) -> &[Episode];
    fn friends_ids(&self) -> &[String];
}
Expand description

A character in the Star Wars Trilogy

Required Methods§

source

fn id(&self) -> &str

The id of the character

source

fn name(&self) -> Option<&str>

The name of the character

source

fn friends(&self, ctx: &Database) -> Vec<CharacterValue>

The friends of the character

source

fn appears_in(&self) -> &[Episode]

Which movies they appear in

source

fn friends_ids(&self) -> &[String]

Implementors§