pub struct SetScriptInfoCommand {
pub property: String,
pub value: String,
}Expand description
Command to set a script info property in the ASS document
Sets or updates properties like Title, Author, PlayResX, PlayResY, etc.
in the [Script Info] section. Creates the section if it doesn’t exist.
Fields§
§property: StringProperty name (e.g., “Title”, “Author”, “PlayResX”)
value: StringNew value for the property
Implementations§
Trait Implementations§
Source§impl Clone for SetScriptInfoCommand
impl Clone for SetScriptInfoCommand
Source§fn clone(&self) -> SetScriptInfoCommand
fn clone(&self) -> SetScriptInfoCommand
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 SetScriptInfoCommand
impl Debug for SetScriptInfoCommand
Source§impl EditorCommand for SetScriptInfoCommand
impl EditorCommand for SetScriptInfoCommand
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 SetScriptInfoCommand
Source§impl PartialEq for SetScriptInfoCommand
impl PartialEq for SetScriptInfoCommand
Source§fn eq(&self, other: &SetScriptInfoCommand) -> bool
fn eq(&self, other: &SetScriptInfoCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SetScriptInfoCommand
Auto Trait Implementations§
impl Freeze for SetScriptInfoCommand
impl RefUnwindSafe for SetScriptInfoCommand
impl Send for SetScriptInfoCommand
impl Sync for SetScriptInfoCommand
impl Unpin for SetScriptInfoCommand
impl UnsafeUnpin for SetScriptInfoCommand
impl UnwindSafe for SetScriptInfoCommand
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