pub fn propose_with_action(
        &mut self,
        prop: &ProposalNeuronBehavior,
        summary: String,
        action: proposal::Action,
    ) -> ProposalId {
        // Submit proposal
        self.governance
            .make_proposal(
                &NeuronId { id: prop.proposer },
                &principal(prop.proposer),
                &Proposal {
                    summary,
                    action: Some(action),
                    ..Default::default()
                },
            )
            .unwrap()
    }
/// Creates a proposal from the specified proposer, and register the
/// specified votes.
///
/// This function assumes that:
/// - neuron of id `i` has for controller `principal(i)`
Creates a proposal from the specified proposer, and register the
specified votes.

This function assumes that:
neuron of id `i` has for controller `principal(i)`
Creates a proposal from the specified proposer and register the specified votes . This function assumes that : neuron of id ` i ` has for controller ` principal ( i ) `
pub fn propose_with_action(
        &mut self,
        prop: &ProposalNeuronBehavior,
        summary: String,
        action: proposal::Action,
    ) -> ProposalId {
        // Submit proposal
        self.governance
            .make_proposal(
                &NeuronId { id: prop.proposer },
                &principal(prop.proposer),
                &Proposal {
                    summary,
                    action: Some(action),
                    ..Default::default()
                },
            )
            .unwrap()
    }
pub fn propose_with_action ( & mut self , prop : & ProposalNeuronBehavior , summary : String , action : proposal :: Action , ) -> ProposalId { // Submit proposal self . governance . make_proposal ( & NeuronId { id : prop . proposer } , & principal ( prop . proposer ) , & Proposal { summary , action : Some ( action ) , .. Default :: default ( ) } , ) . unwrap ( ) }
Creates a proposal from the specified proposer, and register the
specified votes.
Creates a proposal from the specified proposer and register the specified votes .
&mut self
prop
&ProposalNeuronBehavior
summary
String
action
proposal::Action
&mut self
prop
&ProposalNeuronBehavior
summary
String
action
proposal::Action