pub struct ImportOptions {
pub store: FsStore,
pub remote: IpfsStore,
pub commit_cid: String,
pub content_key: ContentKey,
pub on_shard_progress: Option<Box<dyn Fn(usize, usize)>>,
}Expand description
Options for importing a published commit from IPFS.
Fields§
§store: FsStoreLocal object store to write fetched objects into.
remote: IpfsStoreRemote IPFS store to fetch from.
commit_cid: StringCID of the published commit (as string).
content_key: ContentKeyContent key for decrypting the commit.
on_shard_progress: Option<Box<dyn Fn(usize, usize)>>Optional callback for shard fetch progress (fetched, total).
Auto Trait Implementations§
impl Freeze for ImportOptions
impl !RefUnwindSafe for ImportOptions
impl !Send for ImportOptions
impl !Sync for ImportOptions
impl Unpin for ImportOptions
impl UnsafeUnpin for ImportOptions
impl !UnwindSafe for ImportOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more