fn handle_write(&self, output_name: String, entity_reference: Option<String>) {
        // TODO(miguelfrde): verify the output_name matches an output in
        // the manifest.
        fx_log_info!(
            "Got write for parameter name:{}, story:{}, mod:{:?}",
            output_name,
            self.story_id,
            self.module_id,
        );
        match entity_reference {
            // TODO(miguelfrde): veirfy the reference exists.
            Some(reference) => self.story_context_store.lock().contribute(
                &self.story_id,
                &self.module_id,
                &output_name,
                &reference,
            ),
            None => self.story_context_store.lock().withdraw(
                &self.story_id,
                &self.module_id,
                vec![&output_name],
            ),
        }
    }
/// Write to the given |entity_reference| to the context store and associate
/// it to this module output |output_name|. If no entity reference is given,
/// clear that output.
Write to the given |entity_reference| to the context store and associate
it to this module output |output_name|. If no entity reference is given,
clear that output.
Write to the given |entity_reference| to the context store and associate it to this module output |output_name| . If no entity reference is given clear that output .
fn handle_write(&self, output_name: String, entity_reference: Option<String>) {
        // TODO(miguelfrde): verify the output_name matches an output in
        // the manifest.
        fx_log_info!(
            "Got write for parameter name:{}, story:{}, mod:{:?}",
            output_name,
            self.story_id,
            self.module_id,
        );
        match entity_reference {
            // TODO(miguelfrde): veirfy the reference exists.
            Some(reference) => self.story_context_store.lock().contribute(
                &self.story_id,
                &self.module_id,
                &output_name,
                &reference,
            ),
            None => self.story_context_store.lock().withdraw(
                &self.story_id,
                &self.module_id,
                vec![&output_name],
            ),
        }
    }
fn handle_write ( & self , output_name : String , entity_reference : Option < String > ) { // TODO(miguelfrde): verify the output_name matches an output in // the manifest. fx_log_info ! ( " " output_name self story_id self module_id ) ; match entity_reference { // TODO(miguelfrde): veirfy the reference exists. Some ( reference ) => self . story_context_store . lock ( ) . contribute ( & self . story_id , & self . module_id , & output_name , & reference , ) , None => self . story_context_store . lock ( ) . withdraw ( & self . story_id , & self . module_id , vec ! [ output_name ] , ) , } }
Write to the given |entity_reference| to the context store and associate
it to this module output |output_name|.
Write to the given |entity_reference| to the context store and associate it to this module output |output_name| .
&self
output_name
String
entity_reference
Option<String>
&self
output_name
String
entity_reference
Option<String>