pub enum Request {
Show 63 variants
CreateAccount {
username: String,
api_url: String,
welcome_doc: bool,
},
ImportAccount {
key: String,
api_url: Option<String>,
},
ImportAccountPrivateKeyV1 {
account: Account,
},
ImportAccountPhrase {
phrase: Vec<String>,
api_url: String,
},
DeleteAccount,
GetAccount,
SuggestedDocs {
settings: RankingWeights,
},
ClearSuggested,
ClearSuggestedId {
id: Uuid,
},
AppForegrounded,
DisappearAccount {
username: String,
},
DisappearFile {
id: Uuid,
},
ListUsers {
filter: Option<AccountFilter>,
},
GetAccountInfo {
identifier: AccountIdentifier,
},
AdminValidateAccount {
username: String,
},
AdminValidateServer,
AdminFileInfo {
id: Uuid,
},
RebuildIndex {
index: ServerIndex,
},
SetUserTier {
username: String,
info: AdminSetUserTierInfo,
},
UpgradeAccountStripe {
account_tier: StripeAccountTier,
},
UpgradeAccountGooglePlay {
purchase_token: String,
account_id: String,
},
UpgradeAccountAppStore {
original_transaction_id: String,
app_account_token: String,
},
CancelSubscription,
GetSubscriptionInfo,
RecentPanic,
WritePanicToFile {
error_header: String,
bt: String,
},
DebugInfo {
os_info: String,
check_docs: bool,
},
ReadDocument {
id: Uuid,
user_activity: bool,
},
WriteDocument {
id: Uuid,
content: Vec<u8>,
},
ReadDocumentWithHmac {
id: Uuid,
user_activity: bool,
},
SafeWrite {
id: Uuid,
old_hmac: Option<DocumentHmac>,
content: Vec<u8>,
},
CreateFile {
name: String,
parent: Uuid,
file_type: FileType,
},
RenameFile {
id: Uuid,
new_name: String,
},
MoveFile {
id: Uuid,
new_parent: Uuid,
},
Delete {
id: Uuid,
},
Root,
ListMetadatas,
GetChildren {
id: Uuid,
},
GetAndGetChildrenRecursively {
id: Uuid,
},
GetFileById {
id: Uuid,
},
GetFileLinkUrl {
id: Uuid,
},
LocalChanges,
TestRepoIntegrity {
check_docs: bool,
},
CreateLinkAtPath {
path: String,
target_id: Uuid,
},
CreateAtPath {
path: String,
},
GetByPath {
path: String,
},
GetPathById {
id: Uuid,
},
ListPaths {
filter: Option<Filter>,
},
ListPathsWithIds {
filter: Option<Filter>,
},
ShareFile {
id: Uuid,
username: String,
mode: ShareMode,
},
GetPendingShares,
GetPendingShareFiles,
KnownUsernames,
RejectShare {
id: Uuid,
},
PinFile {
id: Uuid,
},
UnpinFile {
id: Uuid,
},
ListPinned,
GetUsage,
Sync,
Status,
GetLastSynced,
GetLastSyncedHuman,
Subscribe,
}Variants§
CreateAccount
ImportAccount
ImportAccountPrivateKeyV1
ImportAccountPhrase
DeleteAccount
GetAccount
SuggestedDocs
Fields
§
settings: RankingWeightsClearSuggested
ClearSuggestedId
AppForegrounded
DisappearAccount
DisappearFile
ListUsers
Fields
§
filter: Option<AccountFilter>GetAccountInfo
Fields
§
identifier: AccountIdentifierAdminValidateAccount
AdminValidateServer
AdminFileInfo
RebuildIndex
Fields
§
index: ServerIndexSetUserTier
UpgradeAccountStripe
Fields
§
account_tier: StripeAccountTierUpgradeAccountGooglePlay
UpgradeAccountAppStore
CancelSubscription
GetSubscriptionInfo
RecentPanic
WritePanicToFile
DebugInfo
ReadDocument
WriteDocument
ReadDocumentWithHmac
SafeWrite
CreateFile
RenameFile
MoveFile
Delete
Root
ListMetadatas
GetChildren
GetAndGetChildrenRecursively
GetFileById
GetFileLinkUrl
LocalChanges
TestRepoIntegrity
CreateLinkAtPath
CreateAtPath
GetByPath
GetPathById
ListPaths
ListPathsWithIds
KnownUsernames
PinFile
UnpinFile
ListPinned
GetUsage
Sync
Status
GetLastSynced
GetLastSyncedHuman
Subscribe
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
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
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more