Skip to main content

edit

Function edit 

Source
pub async fn edit(
    session: &mut Session,
    id: &str,
    name: Option<&str>,
    source: Option<&str>,
) -> Result<String, CommandError>
Expand description

Replace the given fields of template id, keeping the rest as stored.

§Errors

The server’s refusal of the load, CommandError::FormInvalid for a source that does not compile or a stale revision.