pub trait SetValue: ParamValue { }
Expand description
A value representing the name or code of the set a printing appears in.
Parameters with a SetValue
argument include set()
and in_set()
.
This trait is implemented for String
, &str
, and
SetCode
.
§Example
// Get a random Abzan card from Khans of Tarkir.
let card = set("ktk").and(name("abzan")).random().await?;
assert!(card.name.to_lowercase().contains("abzan"));