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