pub enum ProposalEdit {
ReplaceText {
story_id: String,
start: u32,
end: u32,
text: String,
style: Option<TextStyle>,
},
FormatText {
story_id: String,
start: u32,
end: u32,
patch: TextStylePatch,
},
SetParagraphAlignment {
story_id: String,
start: u32,
end: u32,
alignment: Option<String>,
},
SetShapeRect {
slide_id: String,
shape_id: String,
rect: ShapeRect,
},
SetShapeFill {
slide_id: String,
shape_id: String,
color: Option<String>,
},
SetShapeStroke {
slide_id: String,
shape_id: String,
stroke: ShapeStroke,
},
SetShapeAdjust {
slide_id: String,
shape_id: String,
adjustments: BTreeMap<String, f64>,
},
SetSlideNotes {
slide_id: String,
text: String,
},
}Variants§
ReplaceText
FormatText
SetParagraphAlignment
SetShapeRect
SetShapeFill
SetShapeStroke
SetShapeAdjust
SetSlideNotes
Trait Implementations§
Source§impl Clone for ProposalEdit
impl Clone for ProposalEdit
Source§impl Debug for ProposalEdit
impl Debug for ProposalEdit
Source§impl<'de> Deserialize<'de> for ProposalEdit
impl<'de> Deserialize<'de> for ProposalEdit
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
Source§impl PartialEq for ProposalEdit
impl PartialEq for ProposalEdit
Source§impl Serialize for ProposalEdit
impl Serialize for ProposalEdit
impl StructuralPartialEq for ProposalEdit
Auto Trait Implementations§
impl Freeze for ProposalEdit
impl RefUnwindSafe for ProposalEdit
impl Send for ProposalEdit
impl Sync for ProposalEdit
impl Unpin for ProposalEdit
impl UnsafeUnpin for ProposalEdit
impl UnwindSafe for ProposalEdit
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