(bp: SrcBreakPoint)
| 60 | } |
| 61 | |
| 62 | pub fn breakpoint(bp: SrcBreakPoint) -> breakpoint::ActiveModel { |
| 63 | let SrcBreakPoint { |
| 64 | id, |
| 65 | file_id, |
| 66 | loc, |
| 67 | loc_end: _, |
| 68 | breakpoint_type: bp_type, |
| 69 | capture, |
| 70 | } = bp; |
| 71 | |
| 72 | Breakpoint { |
| 73 | id, |
| 74 | file_id, |
| 75 | loc_line: loc.line, |
| 76 | loc_column: loc.column, |
| 77 | breakpoint_type: json_stringify(&bp_type), |
| 78 | capture: json_stringify(&capture), |
| 79 | hit_count: 0, |
| 80 | } |
| 81 | .into_active_model() |
| 82 | } |
| 83 | |
| 84 | pub fn event(timestamp: Timestamp, event: SrcEvent) -> Event { |
| 85 | match event { |