1 2 3 4 5 6 7 8 9 10 11 12 13
use reqwest::Url; use std::error::Error; pub struct _Meta { _endpoint: Url, } impl _Meta { pub fn new(url: &Url) -> Result<Self, Box<dyn Error>> { let _endpoint = url.join("/v1/meta")?; Ok(_Meta { _endpoint }) } }