Struct iroh_blobs::rpc::proto::blobs::ExportRequest
source · pub struct ExportRequest {
pub hash: Hash,
pub path: PathBuf,
pub format: ExportFormat,
pub mode: ExportMode,
}
Available on crate feature
rpc
only.Expand description
A request to the node to download and share the data specified by the hash.
Fields§
§hash: Hash
The hash of the blob to export.
path: PathBuf
The filepath to where the data should be saved
This should be an absolute path valid for the file system on which the node runs.
format: ExportFormat
Set to ExportFormat::Collection
if the hash
refers to a Collection
and you want
to export all children of the collection into individual files.
mode: ExportMode
The mode of exporting.
The default is ExportMode::Copy
. See ExportMode
for details.
Trait Implementations§
source§impl Clone for ExportRequest
impl Clone for ExportRequest
source§fn clone(&self) -> ExportRequest
fn clone(&self) -> ExportRequest
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ExportRequest
impl Debug for ExportRequest
source§impl<'de> Deserialize<'de> for ExportRequest
impl<'de> Deserialize<'de> for ExportRequest
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<ExportRequest> for Request
impl From<ExportRequest> for Request
source§fn from(value: ExportRequest) -> Self
fn from(value: ExportRequest) -> Self
Converts to this type from the input type.
source§impl From<ExportRequest> for Request
impl From<ExportRequest> for Request
source§fn from(value: ExportRequest) -> Self
fn from(value: ExportRequest) -> Self
Converts to this type from the input type.
source§impl Msg<RpcService> for ExportRequest
impl Msg<RpcService> for ExportRequest
source§impl Serialize for ExportRequest
impl Serialize for ExportRequest
source§impl ServerStreamingMsg<RpcService> for ExportRequest
impl ServerStreamingMsg<RpcService> for ExportRequest
§type Response = ExportResponse
type Response = ExportResponse
The type for the response Read more
source§impl<'a> TryFrom<&'a Request> for &'a ExportRequest
impl<'a> TryFrom<&'a Request> for &'a ExportRequest
source§impl<'a> TryFrom<&'a Request> for &'a ExportRequest
impl<'a> TryFrom<&'a Request> for &'a ExportRequest
source§impl TryFrom<Request> for ExportRequest
impl TryFrom<Request> for ExportRequest
Auto Trait Implementations§
impl Freeze for ExportRequest
impl RefUnwindSafe for ExportRequest
impl Send for ExportRequest
impl Sync for ExportRequest
impl Unpin for ExportRequest
impl UnwindSafe for ExportRequest
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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