@@ -20,8 +20,6 @@ use quic_rpc::{client::BoxedConnector, message::RpcMsg, Connector};
20
20
use serde:: { Deserialize , Serialize } ;
21
21
22
22
use super :: flatten;
23
- #[ doc( inline) ]
24
- pub use crate :: engine:: { LiveEvent , Origin , SyncEvent , SyncReason } ;
25
23
use crate :: {
26
24
actor:: OpenState ,
27
25
rpc:: proto:: {
@@ -32,7 +30,12 @@ use crate::{
32
30
StartSyncRequest , StatusRequest ,
33
31
} ,
34
32
store:: { DownloadPolicy , Query } ,
35
- AuthorId , Capability , CapabilityKind , DocTicket , NamespaceId , PeerIdBytes , RecordIdentifier ,
33
+ AuthorId , Capability , CapabilityKind , DocTicket , NamespaceId , PeerIdBytes ,
34
+ } ;
35
+ #[ doc( inline) ]
36
+ pub use crate :: {
37
+ engine:: { LiveEvent , Origin , SyncEvent , SyncReason } ,
38
+ Entry ,
36
39
} ;
37
40
38
41
/// Iroh docs client.
@@ -265,7 +268,7 @@ impl<C: Connector<RpcService>> Doc<C> {
265
268
. 0
266
269
. rpc
267
270
. server_streaming ( ExportFileRequest {
268
- entry : entry . 0 ,
271
+ entry,
269
272
path : path. as_ref ( ) . into ( ) ,
270
273
mode,
271
274
} )
@@ -428,54 +431,6 @@ where
428
431
}
429
432
}
430
433
431
- /// A single entry in a [`Doc`].
432
- #[ derive( Serialize , Deserialize , Debug , Clone , Eq , PartialEq ) ]
433
- pub struct Entry ( crate :: Entry ) ;
434
-
435
- impl From < crate :: Entry > for Entry {
436
- fn from ( value : crate :: Entry ) -> Self {
437
- Self ( value)
438
- }
439
- }
440
-
441
- impl From < crate :: SignedEntry > for Entry {
442
- fn from ( value : crate :: SignedEntry ) -> Self {
443
- Self ( value. into ( ) )
444
- }
445
- }
446
-
447
- impl Entry {
448
- /// Returns the [`RecordIdentifier`] for this entry.
449
- pub fn id ( & self ) -> & RecordIdentifier {
450
- self . 0 . id ( )
451
- }
452
-
453
- /// Returns the [`AuthorId`] of this entry.
454
- pub fn author ( & self ) -> AuthorId {
455
- self . 0 . author ( )
456
- }
457
-
458
- /// Returns the [`struct@Hash`] of the content data of this record.
459
- pub fn content_hash ( & self ) -> Hash {
460
- self . 0 . content_hash ( )
461
- }
462
-
463
- /// Returns the length of the data addressed by this record's content hash.
464
- pub fn content_len ( & self ) -> u64 {
465
- self . 0 . content_len ( )
466
- }
467
-
468
- /// Returns the key of this entry.
469
- pub fn key ( & self ) -> & [ u8 ] {
470
- self . 0 . key ( )
471
- }
472
-
473
- /// Returns the timestamp of this entry.
474
- pub fn timestamp ( & self ) -> u64 {
475
- self . 0 . timestamp ( )
476
- }
477
- }
478
-
479
434
/// Progress messages for an doc import operation
480
435
///
481
436
/// An import operation involves computing the outboard of a file, and then
0 commit comments