Your analysis sounds correct - data did not match any variant of untagged enum
is definitely from serde
IIRC - but I can't say for certain just by looking at the code.
but I’d like the code to log self only when the enum does not match (errors). Thank you.
Try changing line 48 to this:
let object = match self.clone().try_into::<AnnouncableActivities>() {
Ok(object) => object,
Err(e) => {
warn!("zebratrace receive {:?}", self);
return Err(e);
}
}
(This probably isn't the best way to do this, but it's what I came up with off the top of my head :P)