pub struct ImageCache { /* private fields */ }Implementations§
Source§impl ImageCache
impl ImageCache
pub fn new() -> Self
pub fn register_export( &self, file_key: String, node_id: String, format: String, scale: f64, figma_url: String, ) -> Result<String>
pub fn list_all(&self) -> Result<Vec<(String, ImageEntry)>>
pub fn get_entry(&self, uri: &str) -> Result<Option<ImageEntry>>
pub fn update_cached_data(&self, uri: &str, data: Vec<u8>) -> Result<()>
pub fn is_expired(&self, entry: &ImageEntry) -> bool
pub fn get_mime_type(format: &str) -> &'static str
Trait Implementations§
Source§impl Clone for ImageCache
impl Clone for ImageCache
Source§fn clone(&self) -> ImageCache
fn clone(&self) -> ImageCache
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ImageCache
impl RefUnwindSafe for ImageCache
impl Send for ImageCache
impl Sync for ImageCache
impl Unpin for ImageCache
impl UnsafeUnpin for ImageCache
impl UnwindSafe for ImageCache
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