Enum WorkspaceType
pub enum WorkspaceType {
Regular(String),
Special(Option<String>),
}
Expand description
This enum holds workspace data
Variants§
Trait Implementations§
§impl Clone for WorkspaceType
impl Clone for WorkspaceType
§fn clone(&self) -> WorkspaceType
fn clone(&self) -> WorkspaceType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for WorkspaceType
impl Debug for WorkspaceType
§impl<'de> Deserialize<'de> for WorkspaceType
impl<'de> Deserialize<'de> for WorkspaceType
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<WorkspaceType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<WorkspaceType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Display for WorkspaceType
impl Display for WorkspaceType
§impl Hash for WorkspaceType
impl Hash for WorkspaceType
§impl Ord for WorkspaceType
impl Ord for WorkspaceType
§impl PartialEq for WorkspaceType
impl PartialEq for WorkspaceType
§impl PartialOrd for WorkspaceType
impl PartialOrd for WorkspaceType
§impl Serialize for WorkspaceType
impl Serialize for WorkspaceType
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
§impl TryFrom<i16> for WorkspaceType
impl TryFrom<i16> for WorkspaceType
§impl TryFrom<i32> for WorkspaceType
impl TryFrom<i32> for WorkspaceType
§impl TryFrom<i64> for WorkspaceType
impl TryFrom<i64> for WorkspaceType
§impl TryFrom<i8> for WorkspaceType
impl TryFrom<i8> for WorkspaceType
§impl TryFrom<isize> for WorkspaceType
impl TryFrom<isize> for WorkspaceType
§impl TryFrom<u16> for WorkspaceType
impl TryFrom<u16> for WorkspaceType
§impl TryFrom<u32> for WorkspaceType
impl TryFrom<u32> for WorkspaceType
§impl TryFrom<u64> for WorkspaceType
impl TryFrom<u64> for WorkspaceType
§impl TryFrom<u8> for WorkspaceType
impl TryFrom<u8> for WorkspaceType
§impl TryFrom<usize> for WorkspaceType
impl TryFrom<usize> for WorkspaceType
impl Eq for WorkspaceType
impl StructuralPartialEq for WorkspaceType
Auto Trait Implementations§
impl Freeze for WorkspaceType
impl RefUnwindSafe for WorkspaceType
impl Send for WorkspaceType
impl Sync for WorkspaceType
impl Unpin for WorkspaceType
impl UnwindSafe for WorkspaceType
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> 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