surrealdb init

This commit is contained in:
Per Stark
2024-10-13 20:20:46 +02:00
parent 13b8fce803
commit 83d8452316
14 changed files with 2144 additions and 28 deletions
+3 -3
View File
@@ -19,7 +19,7 @@ use crate::redis::client::{RedisClient, RedisClientTrait};
/// Represents metadata and storage information for a file.
#[derive(Debug, PartialEq, Clone, Deserialize, Serialize)]
pub struct FileInfo {
pub uuid: Uuid,
pub uuid: String,
pub sha256: String,
pub path: String,
pub mime_type: String,
@@ -139,7 +139,7 @@ impl FileInfo {
// Construct the FileInfo object
let file_info = FileInfo {
uuid,
uuid: uuid.to_string(),
sha256: sha.clone(),
path: persisted_path.to_string_lossy().to_string(),
mime_type,
@@ -212,7 +212,7 @@ impl FileInfo {
// Update FileInfo
let updated_file_info = FileInfo {
uuid,
uuid: uuid.to_string(),
sha256: new_sha.clone(),
path: new_persisted_path.to_string_lossy().to_string(),
mime_type: new_mime_type,