Selaa lähdekoodia

Add debug derive for Outputs

develop
Silvestr Predko 2 vuotta sitten
vanhempi
commit
f4613dc571
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2
    0
      near-rpc/src/client.rs

+ 2
- 0
near-rpc/src/client.rs Näytä tiedosto

@@ -313,6 +313,7 @@ impl NearClient {
313 313
     }
314 314
 }
315 315
 
316
+#[derive(Debug)]
316 317
 pub struct ViewOutput<T: DeserializeOwned> {
317 318
     logs: Vec<String>,
318 319
     data: T,
@@ -339,6 +340,7 @@ impl<T: DeserializeOwned> Deref for ViewOutput<T> {
339 340
 }
340 341
 
341 342
 /// Function call output.
343
+#[derive(Debug)]
342 344
 pub struct Output {
343 345
     transaction: ExecutionOutcomeWithIdView,
344 346
     logs: Vec<String>,

Loading…
Peruuta
Tallenna