pub struct CamoConfig { /* private fields */ }Implementations§
Source§impl CamoConfig
impl CamoConfig
pub fn new<S1: Into<String>, S2: Into<String>>( key: S1, host: S2, ) -> Result<Self, Box<dyn Error>>
pub fn new_with_lifetime<S1: Into<String>, S2: Into<String>>( key: S1, host: S2, lifetime: Duration, ) -> Result<Self, Box<dyn Error>>
pub fn new_from(key: Vec<u8>, host: Url) -> Self
pub fn new_from_with_lifetime( key: Vec<u8>, host: Url, lifetime: Duration, ) -> Self
pub fn get_camo_url(&self, url: &Url) -> Result<Url, Box<dyn Error>>
pub fn get_camo_url_inline(&self, url: &Url) -> Result<Url, Box<dyn Error>>
pub fn get_camo_v2_url( &self, url: &Url, base_time: SystemTime, ) -> Result<Url, Box<dyn Error>>
Trait Implementations§
Source§impl Clone for CamoConfig
impl Clone for CamoConfig
Source§fn clone(&self) -> CamoConfig
fn clone(&self) -> CamoConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CamoConfig
impl RefUnwindSafe for CamoConfig
impl Send for CamoConfig
impl Sync for CamoConfig
impl Unpin for CamoConfig
impl UnwindSafe for CamoConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more