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§
sourcefn friends(&self, ctx: &Database) -> Vec<CharacterValue>
fn friends(&self, ctx: &Database) -> Vec<CharacterValue>
The friends of the character
sourcefn appears_in(&self) -> &[Episode]
fn appears_in(&self) -> &[Episode]
Which movies they appear in