pub struct SpatioFile {
pub id: String,
pub provider: Option<String>,
pub account_id: Option<String>,
pub name: String,
pub size: i64,
pub mime_type: String,
pub folder_id: Option<Option<String>>,
pub storage_type: String,
pub download_url: Option<String>,
pub metadata: Option<HashMap<String, Value>>,
pub created_at: DateTime<FixedOffset>,
pub updated_at: DateTime<FixedOffset>,
}Expand description
SpatioFile : A user file. Files belong to one connected file provider account (accountId + provider); native storage uses Spatio’s block-store, external providers (Google Drive, Dropbox, etc.) round-trip through Spatio. Schema name is SpatioFile (not File) to avoid the java.io.File collision that breaks the Kotlin SDK generator when the schema is named File.
Fields§
§id: String§provider: Option<String>§account_id: Option<String>§name: String§size: i64Bytes.
mime_type: String§folder_id: Option<Option<String>>§storage_type: StringBacking storage class — r2, gdrive, dropbox, etc. Provider-specific; treat as opaque.
download_url: Option<String>Pre-signed download URL when one is cached on the row. Use GET /v1/files/{id}/download for a guaranteed-fresh URL — this field can lag past expiry.
metadata: Option<HashMap<String, Value>>§created_at: DateTime<FixedOffset>§updated_at: DateTime<FixedOffset>Implementations§
Source§impl SpatioFile
impl SpatioFile
Sourcepub fn new(
id: String,
name: String,
size: i64,
mime_type: String,
storage_type: String,
created_at: DateTime<FixedOffset>,
updated_at: DateTime<FixedOffset>,
) -> SpatioFile
pub fn new( id: String, name: String, size: i64, mime_type: String, storage_type: String, created_at: DateTime<FixedOffset>, updated_at: DateTime<FixedOffset>, ) -> SpatioFile
A user file. Files belong to one connected file provider account (accountId + provider); native storage uses Spatio’s block-store, external providers (Google Drive, Dropbox, etc.) round-trip through Spatio. Schema name is SpatioFile (not File) to avoid the java.io.File collision that breaks the Kotlin SDK generator when the schema is named File.
Trait Implementations§
Source§impl Clone for SpatioFile
impl Clone for SpatioFile
Source§fn clone(&self) -> SpatioFile
fn clone(&self) -> SpatioFile
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SpatioFile
impl Debug for SpatioFile
Source§impl Default for SpatioFile
impl Default for SpatioFile
Source§fn default() -> SpatioFile
fn default() -> SpatioFile
Source§impl<'de> Deserialize<'de> for SpatioFile
impl<'de> Deserialize<'de> for SpatioFile
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>,
Source§impl PartialEq for SpatioFile
impl PartialEq for SpatioFile
Source§fn eq(&self, other: &SpatioFile) -> bool
fn eq(&self, other: &SpatioFile) -> bool
self and other values to be equal, and is used by ==.