pub enum WorkspaceFileKind {
Text,
Markdown,
Json,
Pdf,
Image,
RawImage,
OfficeDocument,
Archive,
SqliteDatabase,
UrlResource,
Binary,
}Expand description
Enumerates the finite workspace file kind cases. Serialized names are part of the SDK contract; update fixtures when variants change.
Variants§
Text
Use this variant when the contract needs to represent text; selecting it has no side effect by itself.
Markdown
Use this variant when the contract needs to represent markdown; selecting it has no side effect by itself.
Json
Use this variant when the contract needs to represent json; selecting it has no side effect by itself.
Use this variant when the contract needs to represent pdf; selecting it has no side effect by itself.
Image
Use this variant when the contract needs to represent image; selecting it has no side effect by itself.
RawImage
Use this variant when the contract needs to represent raw image; selecting it has no side effect by itself.
OfficeDocument
Use this variant when the contract needs to represent office document; selecting it has no side effect by itself.
Archive
Use this variant when the contract needs to represent archive; selecting it has no side effect by itself.
SqliteDatabase
Use this variant when the contract needs to represent sqlite database; selecting it has no side effect by itself.
UrlResource
Use this variant when the contract needs to represent url resource; selecting it has no side effect by itself.
Binary
Use this variant when the contract needs to represent binary; selecting it has no side effect by itself.
Trait Implementations§
Source§impl Clone for WorkspaceFileKind
impl Clone for WorkspaceFileKind
Source§fn clone(&self) -> WorkspaceFileKind
fn clone(&self) -> WorkspaceFileKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WorkspaceFileKind
impl Debug for WorkspaceFileKind
Source§impl<'de> Deserialize<'de> for WorkspaceFileKind
impl<'de> Deserialize<'de> for WorkspaceFileKind
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>,
impl Eq for WorkspaceFileKind
Source§impl PartialEq for WorkspaceFileKind
impl PartialEq for WorkspaceFileKind
Source§fn eq(&self, other: &WorkspaceFileKind) -> bool
fn eq(&self, other: &WorkspaceFileKind) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for WorkspaceFileKind
impl Serialize for WorkspaceFileKind
impl StructuralPartialEq for WorkspaceFileKind
Auto Trait Implementations§
impl Freeze for WorkspaceFileKind
impl RefUnwindSafe for WorkspaceFileKind
impl Send for WorkspaceFileKind
impl Sync for WorkspaceFileKind
impl Unpin for WorkspaceFileKind
impl UnsafeUnpin for WorkspaceFileKind
impl UnwindSafe for WorkspaceFileKind
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.