(operation: AddAccountOperationDTO)
| 129 | |
| 130 | impl From<AddAccountOperationDTO> for AddAccountOperation { |
| 131 | fn from(operation: AddAccountOperationDTO) -> AddAccountOperation { |
| 132 | AddAccountOperation { |
| 133 | account_id: operation.account.map(|account| { |
| 134 | *HelperMapper::to_uuid(account.id) |
| 135 | .expect("Invalid account id") |
| 136 | .as_bytes() |
| 137 | }), |
| 138 | input: operation.input.into(), |
| 139 | } |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | impl From<station_api::AddAccountOperationInput> for AddAccountOperationInput { |