/// Create an empty instance of the form to finish meeting creation.
Create an empty instance of the form to finish meeting creation.
Create an empty instance of the form to finish meeting creation .
async fn finish_form(host: Option<Uuid>) -> Result<Template, TelescopeError> {
    // Query RCOS API for meeting creation context.
    let context = CreationContext::execute(host, Vec::new()).await?;
    // Create form.
    let mut form = Template::new(FINISH_CREATION_TEMPLATE);
    // Add context to form.
    form.fields = json!({
        "context": context,
        "meeting_types": &ALL_MEETING_TYPES
    });
    // Return form with context.
    return Ok(form);
}
async fn finish_form ( host : Option < Uuid > ) -> Result < Template , TelescopeError > { // Query RCOS API for meeting creation context. let context = CreationContext :: execute ( host , Vec :: new ( ) ) . await ? ; // Create form. let mut form = Template :: new ( FINISH_CREATION_TEMPLATE ) ; // Add context to form. form . fields = json ! ( { " " context " " ALL_MEETING_TYPES } ) ; // Return form with context. return Ok ( form ) ; }
Create an empty instance of the form to finish meeting creation.
Create an empty instance of the form to finish meeting creation .
host
Option<Uuid>