pub enum Request {
Show 66 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,
BuildIndex,
ReloadSearchIndex,
Search {
input: String,
cfg: SearchConfig,
},
}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
BuildIndex
ReloadSearchIndex
Search
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,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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