mirror of https://gitlab.com/famedly/conduit
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
397 B
Rust
9 lines
397 B
Rust
2 years ago
|
use crate::Result;
|
||
|
|
||
|
pub trait Data {
|
||
|
fn create_file_metadata(&self, mxc: String, width: u32, height: u32, content_disposition: &Option<&str>, content_type: &Option<&str>) -> Result<Vec<u8>>;
|
||
|
|
||
|
/// Returns content_disposition, content_type and the metadata key.
|
||
|
fn search_file_metadata(&self, mxc: String, width: u32, height: u32) -> Result<(Option<String>, Option<String>, Vec<u8>)>;
|
||
|
}
|