pub struct ExportFileRequest {
pub entry: Entry,
pub path: PathBuf,
pub mode: ExportMode,
}
Available on crate feature
rpc
only.Expand description
A request to the node to save the data of the entry to the given filepath
Will produce a stream of ExportFileResponse
messages.
Fields§
§entry: Entry
The entry you want 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. Usually the cli will run on the same machine as the node, so this should be an absolute path on the cli machine.
mode: ExportMode
The mode of exporting. Setting to ExportMode::TryReference
means attempting
to use references for keeping file
Trait Implementations§
Source§impl Debug for ExportFileRequest
impl Debug for ExportFileRequest
Source§impl<'de> Deserialize<'de> for ExportFileRequest
impl<'de> Deserialize<'de> for ExportFileRequest
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<ExportFileRequest> for Request
impl From<ExportFileRequest> for Request
Source§fn from(value: ExportFileRequest) -> Self
fn from(value: ExportFileRequest) -> Self
Converts to this type from the input type.
Source§impl Msg<RpcService> for ExportFileRequest
impl Msg<RpcService> for ExportFileRequest
Source§impl Serialize for ExportFileRequest
impl Serialize for ExportFileRequest
Source§impl ServerStreamingMsg<RpcService> for ExportFileRequest
impl ServerStreamingMsg<RpcService> for ExportFileRequest
Source§type Response = ExportFileResponse
type Response = ExportFileResponse
The type for the response Read more
Source§impl<'a> TryFrom<&'a Request> for &'a ExportFileRequest
impl<'a> TryFrom<&'a Request> for &'a ExportFileRequest
Auto Trait Implementations§
impl !Freeze for ExportFileRequest
impl RefUnwindSafe for ExportFileRequest
impl Send for ExportFileRequest
impl Sync for ExportFileRequest
impl Unpin for ExportFileRequest
impl UnwindSafe for ExportFileRequest
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