use jmap_types::{GetObject, JmapObject, PatchObject, QueryObject, SetObject};
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
#[non_exhaustive]
pub enum FileNodeProperty {
Id,
ParentId,
NodeType,
BlobId,
Target,
Size,
Name,
MediaType,
Created,
Modified,
Accessed,
Changed,
Executable,
IsSubscribed,
MyRights,
ShareWith,
Role,
}
impl JmapObject for crate::FileNode {
const TYPE_NAME: &'static str = "FileNode";
type Property = FileNodeProperty;
}
impl GetObject for crate::FileNode {}
impl SetObject for crate::FileNode {
type Patch = PatchObject;
}
impl QueryObject for crate::FileNode {
type Filter = crate::FileNodeFilterCondition;
type Comparator = serde_json::Value;
}