-
Notifications
You must be signed in to change notification settings - Fork 250
Closed
Description
I'm looking into using resources with the following .wit file:
resource aggregate {
static new: function(id: string) -> aggregate
apply-events: function(event: list<list<u8>>)
}
Which generates:
pub trait Aggregate {
fn new(id: String,) -> wit_bindgen_rust::Handle<super::Aggregate>;
fn apply_events(&self,event: Vec<Vec<u8>>,);
}But using the online demo to see the generated rust code for export, the apply-events method takes &self. But what if I want to mutate self with &mut self, is this possible?
Metadata
Metadata
Assignees
Labels
No labels