pub enum FragmentRotation {
None,
Clockwise90,
Clockwise180,
Counterclockwise90,
}Expand description
A fragment stamp rotation (spec-0017) — the /place template
quarter-turn set.
Variants§
None
No rotation.
Clockwise90
90° clockwise.
Clockwise180
180°.
Counterclockwise90
90° counterclockwise.
Trait Implementations§
Source§impl Clone for FragmentRotation
impl Clone for FragmentRotation
impl Copy for FragmentRotation
Source§impl Debug for FragmentRotation
impl Debug for FragmentRotation
Source§impl<'de> Deserialize<'de> for FragmentRotation
impl<'de> Deserialize<'de> for FragmentRotation
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
impl Eq for FragmentRotation
Source§impl JsonSchema for FragmentRotation
impl JsonSchema for FragmentRotation
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 FragmentRotation
impl PartialEq for FragmentRotation
Source§impl Serialize for FragmentRotation
impl Serialize for FragmentRotation
impl StructuralPartialEq for FragmentRotation
Auto Trait Implementations§
impl Freeze for FragmentRotation
impl RefUnwindSafe for FragmentRotation
impl Send for FragmentRotation
impl Sync for FragmentRotation
impl Unpin for FragmentRotation
impl UnsafeUnpin for FragmentRotation
impl UnwindSafe for FragmentRotation
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