q2316367743/open-list/core does not have a README file
impl FromJson for ArchiveContentpub struct ArchiveMetaResponse {
comment : String
encrypted : Bool
content : Array[ArchiveContent]
sort : ListSort?
raw_url : String
sign : String
}impl FromJson for ArchiveMetaResponsefn ArchiveMetaResponse::from_json(json : Json, path : JsonPath) -> ArchiveMetaResponse raise JsonDecodeErrorpub struct Client {
// private fields
}async fn Client::password_login(self : Client, credentials : PasswordCredentials) -> String raise OpenListErrorpub struct DirResp {
name : String
modified : String
}pub struct DriverConfig {
name : String
local_sort : Bool
only_proxy : Bool
no_cache : Bool
no_upload : Bool
need_ms : Bool
default_root : String
alert : String
only_indices : Bool
prefer_proxy : Bool
}pub struct DriverInfo {
common : Array[DriverItem]
additional : Array[DriverItem]
config : DriverConfig
}impl FromJson for DriverInfopub struct DriverItem {
name : String
item_type : String
default : String
options : String
required : Bool
help : String
}impl FromJson for FsGetResponseimpl FromJson for FsListResponsepub struct IndexProgress {
obj_count : Int64
is_done : Bool
last_done_time : String?
error : String
}impl FromJson for IndexProgresspub struct InitStatus {
initialized : Bool
}impl FromJson for InitStatuspub struct ListSort {
order_by : String
order_direction : String
extract_folder : String
}pub(all) struct Meta {
id : UInt
path : String
read_users : Array[UInt]
read_users_sub : Bool
write_users : Array[UInt]
write_users_sub : Bool
password : String
p_sub : Bool
write : Bool
w_sub : Bool
hide : String
h_sub : Bool
readme : String
r_sub : Bool
header : String
header_sub : Bool
} derive(ToJson)impl FromJson for MultipartInitResponsefn MultipartInitResponse::from_json(json : Json, path : JsonPath) -> MultipartInitResponse raise JsonDecodeErrorpub struct ObjResp {
name : String
size : Int64
is_dir : Bool
modified : String
created : String
sign : String
thumb : String
obj_type : Int
hashinfo : String
hash_info : Map[String, String]
mount_details : StorageDetails?
}impl FromJson for PageResult[T]fn[T : FromJson] PageResult::from_json(json : Json, path : JsonPath) -> PageResult[T] raise JsonDecodeErrorpub struct PasswordCredentials {
username : String
password : String
otp_code : String?
}fn PasswordCredentials::new(username : String, password : String, otp_code? : String) -> PasswordCredentialspub struct SSHPublicKey {
id : UInt
title : String
fingerprint : String
added_time : String
last_used_time : String
}pub struct SearchResult {
parent : String
name : String
is_dir : Bool
size : Int64
obj_type : Int
}impl FromJson for SearchResultimpl FromJson for SessionSnapshotfn SessionSnapshot::from_json(json : Json, path : JsonPath) -> SessionSnapshot raise JsonDecodeErrorpub(all) struct SettingItem {
key : String
value : String
help : String
item_type : String
options : String
group : Int
flag : Int
index : UInt
}impl ToJson for SettingItemimpl FromJson for SettingItempub struct Settings {
base_url : String
timeout : Int?
}pub struct SharingResponse {
id : String
expires : String?
pwd : String
accessed : Int
max_accessed : Int
disabled : Bool
remark : String
readme : String
header : String
order_by : String
order_direction : String
extract_folder : String
files : Array[String]
creator : String
creator_role : Int
}impl FromJson for SharingResponsefn SharingResponse::from_json(json : Json, path : JsonPath) -> SharingResponse raise JsonDecodeErrorpub(all) struct Storage {
id : UInt
mount_path : String
order : Int
driver : String
cache_expiration : Int
custom_cache_policies : String
status : String
addition : String
remark : String
modified : String
disabled : Bool
disable_index : Bool
enable_sign : Bool
order_by : String
order_direction : String
extract_folder : String
web_proxy : Bool
webdav_policy : String
proxy_range : Bool
down_proxy_url : String
disable_proxy_sign : Bool
} derive(ToJson)pub struct StorageDetails {
driver_name : String
total_space : Int64
free_space : Int64
}impl FromJson for StorageDetailspub struct TaskInfo {
id : String
name : String
creator : String
creator_role : Int
state : String
status : String
progress : Double
start_time : String?
end_time : String?
total_bytes : Int64
error : String
}pub(all) struct User {
id : UInt
username : String
password : String
base_path : String
role : Int
disabled : Bool
permission : Int
sso_id : String
allow_ldap : Bool
} derive(ToJson)impl FromJson for UserResponselet query = @core.query_json(@core.page_pairs(page=1))
// => {"page": 1}let query = @core.query_json([
("page", Some(Json::number(1))),
("path", Some(Json::string("/docs"))),
("refresh", None),
])
// => {"page": 1, "path": "/docs"}fn url_path_encode(path : String) -> StringInstall
Download zipOpenList API 的 MoonBit 客户端:认证、用户、管理、文件系统、公开接口与分享六个子模块
Dependencies