1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use url::Url; pub struct StrategyParameters { url: Url, } impl StrategyParameters { pub fn new(url: Url) -> Self { Self { url } } pub fn url(&self) -> &str { self.url.as_ref() } }