pub struct DeleteScriptInfoCommand {
pub property: String,
}Expand description
Command to delete a script info property from the ASS document
Removes a specific property from the [Script Info] section.
Does not remove the section itself even if it becomes empty.
Fields§
§property: StringProperty name to delete
Implementations§
Trait Implementations§
Source§impl Clone for DeleteScriptInfoCommand
impl Clone for DeleteScriptInfoCommand
Source§fn clone(&self) -> DeleteScriptInfoCommand
fn clone(&self) -> DeleteScriptInfoCommand
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 moreSource§impl Debug for DeleteScriptInfoCommand
impl Debug for DeleteScriptInfoCommand
Source§impl EditorCommand for DeleteScriptInfoCommand
impl EditorCommand for DeleteScriptInfoCommand
Source§fn execute(&self, document: &mut EditorDocument) -> Result<CommandResult>
fn execute(&self, document: &mut EditorDocument) -> Result<CommandResult>
Execute the command on the given document Read more
Source§fn description(&self) -> &str
fn description(&self) -> &str
Get a human-readable description of the command
Source§fn memory_usage(&self) -> usize
fn memory_usage(&self) -> usize
Get the estimated memory usage of this command Read more
Source§fn modifies_content(&self) -> bool
fn modifies_content(&self) -> bool
Check if this command modifies document content Read more
impl Eq for DeleteScriptInfoCommand
Source§impl PartialEq for DeleteScriptInfoCommand
impl PartialEq for DeleteScriptInfoCommand
Source§fn eq(&self, other: &DeleteScriptInfoCommand) -> bool
fn eq(&self, other: &DeleteScriptInfoCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DeleteScriptInfoCommand
Auto Trait Implementations§
impl Freeze for DeleteScriptInfoCommand
impl RefUnwindSafe for DeleteScriptInfoCommand
impl Send for DeleteScriptInfoCommand
impl Sync for DeleteScriptInfoCommand
impl Unpin for DeleteScriptInfoCommand
impl UnsafeUnpin for DeleteScriptInfoCommand
impl UnwindSafe for DeleteScriptInfoCommand
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