pub struct PubkyAppFile {
pub name: String,
pub created_at: i64,
pub src: String,
pub content_type: String,
pub size: usize,
}
Expand description
Represents a file uploaded by the user. URI: /pub/pubky.app/files/:file_id
Fields§
§name: String
§created_at: i64
§src: String
§content_type: String
§size: usize
Implementations§
Trait Implementations§
Source§impl Clone for PubkyAppFile
impl Clone for PubkyAppFile
Source§fn clone(&self) -> PubkyAppFile
fn clone(&self) -> PubkyAppFile
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 moreSource§impl Debug for PubkyAppFile
impl Debug for PubkyAppFile
Source§impl Default for PubkyAppFile
impl Default for PubkyAppFile
Source§fn default() -> PubkyAppFile
fn default() -> PubkyAppFile
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PubkyAppFile
impl<'de> Deserialize<'de> for PubkyAppFile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl HasIdPath for PubkyAppFile
impl HasIdPath for PubkyAppFile
const PATH_SEGMENT: &'static str = "files/"
fn create_path(&self, id: &str) -> String
Source§impl Serialize for PubkyAppFile
impl Serialize for PubkyAppFile
Source§impl TimestampId for PubkyAppFile
impl TimestampId for PubkyAppFile
Auto Trait Implementations§
impl Freeze for PubkyAppFile
impl RefUnwindSafe for PubkyAppFile
impl Send for PubkyAppFile
impl Sync for PubkyAppFile
impl Unpin for PubkyAppFile
impl UnwindSafe for PubkyAppFile
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