pub struct ImportFileRequest {
pub doc_id: NamespaceId,
pub author_id: AuthorId,
pub key: Bytes,
pub path: PathBuf,
pub in_place: bool,
}
Available on crate feature
rpc
only.Expand description
A request to the node to add the data at the given filepath as an entry to the document
Will produce a stream of ImportProgress
messages.
Fields§
§doc_id: NamespaceId
The document id
Author of this entry.
key: Bytes
Key of this entry.
path: PathBuf
The filepath to the data
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.
in_place: bool
True if the provider can assume that the data will not change, so it can be shared in place.
Trait Implementations§
Source§impl Debug for ImportFileRequest
impl Debug for ImportFileRequest
Source§impl<'de> Deserialize<'de> for ImportFileRequest
impl<'de> Deserialize<'de> for ImportFileRequest
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<ImportFileRequest> for Request
impl From<ImportFileRequest> for Request
Source§fn from(value: ImportFileRequest) -> Self
fn from(value: ImportFileRequest) -> Self
Converts to this type from the input type.
Source§impl Msg<RpcService> for ImportFileRequest
impl Msg<RpcService> for ImportFileRequest
Source§impl Serialize for ImportFileRequest
impl Serialize for ImportFileRequest
Source§impl ServerStreamingMsg<RpcService> for ImportFileRequest
impl ServerStreamingMsg<RpcService> for ImportFileRequest
Source§type Response = ImportFileResponse
type Response = ImportFileResponse
The type for the response Read more
Source§impl<'a> TryFrom<&'a Request> for &'a ImportFileRequest
impl<'a> TryFrom<&'a Request> for &'a ImportFileRequest
Auto Trait Implementations§
impl !Freeze for ImportFileRequest
impl RefUnwindSafe for ImportFileRequest
impl Send for ImportFileRequest
impl Sync for ImportFileRequest
impl Unpin for ImportFileRequest
impl UnwindSafe for ImportFileRequest
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