bity-ic-storage-canister-api 0.6.0

API for the storage canister
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use candid::CandidType;
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, CandidType, Clone, Debug)]
pub struct Args {
    pub file_path: String,
}

#[derive(Serialize, Deserialize, CandidType, Debug)]
pub struct RemoveFileResp {}

pub type Response = Result<RemoveFileResp, RemoveFileError>;

#[derive(Serialize, Deserialize, CandidType, Debug)]
pub enum RemoveFileError {
    UploadNotInitialized,
    InvalidFilePath,
}