Struct iroh_blobs::rpc::proto::blobs::AddPathRequest    
source · pub struct AddPathRequest {
    pub path: PathBuf,
    pub in_place: bool,
    pub tag: SetTagOption,
    pub wrap: WrapOption,
}Available on crate feature 
rpc only.Expand description
A request to the node to provide the data at the given path
Will produce a stream of AddProgress messages.
Fields§
§path: PathBufThe path to the data to provide.
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: boolTrue if the provider can assume that the data will not change, so it can be shared in place.
tag: SetTagOptionTag to tag the data with.
wrap: WrapOptionWhether to wrap the added data in a collection
Trait Implementations§
source§impl Debug for AddPathRequest
 
impl Debug for AddPathRequest
source§impl<'de> Deserialize<'de> for AddPathRequest
 
impl<'de> Deserialize<'de> for AddPathRequest
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<AddPathRequest> for Request
 
impl From<AddPathRequest> for Request
source§fn from(value: AddPathRequest) -> Self
 
fn from(value: AddPathRequest) -> Self
Converts to this type from the input type.
source§impl From<AddPathRequest> for Request
 
impl From<AddPathRequest> for Request
source§fn from(value: AddPathRequest) -> Self
 
fn from(value: AddPathRequest) -> Self
Converts to this type from the input type.
source§impl Msg<RpcService> for AddPathRequest
 
impl Msg<RpcService> for AddPathRequest
source§impl Serialize for AddPathRequest
 
impl Serialize for AddPathRequest
source§impl ServerStreamingMsg<RpcService> for AddPathRequest
 
impl ServerStreamingMsg<RpcService> for AddPathRequest
§type Response = AddPathResponse
 
type Response = AddPathResponse
The type for the response Read more
source§impl<'a> TryFrom<&'a Request> for &'a AddPathRequest
 
impl<'a> TryFrom<&'a Request> for &'a AddPathRequest
source§impl<'a> TryFrom<&'a Request> for &'a AddPathRequest
 
impl<'a> TryFrom<&'a Request> for &'a AddPathRequest
source§impl TryFrom<Request> for AddPathRequest
 
impl TryFrom<Request> for AddPathRequest
Auto Trait Implementations§
impl !Freeze for AddPathRequest
impl RefUnwindSafe for AddPathRequest
impl Send for AddPathRequest
impl Sync for AddPathRequest
impl Unpin for AddPathRequest
impl UnwindSafe for AddPathRequest
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