#[non_exhaustive]pub enum EditStep {
InsertText {
target: TextTarget,
at: TargetEdge,
text: String,
expect: Option<TextGuard>,
},
ReplaceText {
target: TextTarget,
text: String,
expect: Option<TextGuard>,
},
DeleteText {
target: TextTarget,
expect: Option<TextGuard>,
},
FormatText {
target: TextTarget,
patch: TextStylePatch,
expect: Option<TextGuard>,
},
SetParagraphAlignment {
target: TextTarget,
alignment: Option<String>,
expect: Option<TextGuard>,
},
SetSlideNotes {
target: SlideTarget,
text: String,
expect: Option<TextGuard>,
},
SetSlideBackground {
target: SlideTarget,
background: Option<Box<ShapeFill>>,
expect: Option<BackgroundGuard>,
},
SetShapeRect {
target: ShapeTarget,
rect: ShapeRect,
expect: Option<RectGuard>,
},
SetShapeFill {
target: ShapeTarget,
color: Option<String>,
expect: Option<FillGuard>,
},
SetShapeStroke {
target: ShapeTarget,
stroke: ShapeStroke,
expect: Option<OutlineGuard>,
},
SetShapeAdjust {
target: ShapeTarget,
adjustments: BTreeMap<String, f64>,
},
}Expand description
One batch step. Text steps stay inside one paragraph, except formatText and
setParagraphAlignment, which may span paragraphs of one story.
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.
InsertText
ReplaceText
DeleteText
FormatText
SetParagraphAlignment
None restores the inherited alignment.
SetSlideNotes
Replaces the slide’s speaker notes; empty text clears them.
SetSlideBackground
Replaces the slide’s background; null clears the declaration.
SetShapeRect
SetShapeFill
A solid #RRGGBB fill; None removes the fill.
SetShapeStroke
SetShapeAdjust
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EditStep
impl<'de> Deserialize<'de> for EditStep
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 StructuralPartialEq for EditStep
Auto Trait Implementations§
impl Freeze for EditStep
impl RefUnwindSafe for EditStep
impl Send for EditStep
impl Sync for EditStep
impl Unpin for EditStep
impl UnsafeUnpin for EditStep
impl UnwindSafe for EditStep
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