pub async fn edit(
session: &mut Session,
id: &str,
name: Option<&str>,
source: Option<&str>,
enabled: Option<bool>,
) -> Result<String, CommandError>Expand description
Replace the given fields of script id, keeping the rest as stored.
§Errors
The server’s refusal of the load, CommandError::FormInvalid for a
source that does not compile, a stale revision or a script that cannot
be saved this way.