#[non_exhaustive]pub enum CompactKind {
Compact,
Trim,
}Expand description
改写历史的压缩,还是只清旧工具结果的修剪。
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for CompactKind
impl Clone for CompactKind
Source§fn clone(&self) -> CompactKind
fn clone(&self) -> CompactKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CompactKind
Source§impl Debug for CompactKind
impl Debug for CompactKind
impl Eq for CompactKind
Source§impl JsonSchema for CompactKind
impl JsonSchema for CompactKind
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for CompactKind
impl PartialEq for CompactKind
Source§impl Serialize for CompactKind
impl Serialize for CompactKind
Source§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 StructuralPartialEq for CompactKind
Auto Trait Implementations§
impl Forget for CompactKind
impl Freeze for CompactKind
impl Move for CompactKind
impl RefUnwindSafe for CompactKind
impl Send for CompactKind
impl Sync for CompactKind
impl Unpin for CompactKind
impl UnsafeUnpin for CompactKind
impl UnwindSafe for CompactKind
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