pub async fn create_parcel<I>(
        &self,
        bindle_id: I,
        parcel_sha: &str,
        data: Vec<u8>,
    ) -> Result<()>
    where
        I: TryInto<Id>,
        I::Error: Into<ClientError>,
    {
        let parsed_id = bindle_id.try_into().map_err(|e| e.into())?;
        self.create_parcel_request(
            self.create_parcel_builder(&parsed_id, parcel_sha)
                .body(data),
        )
        .await
    }
/// Creates the given parcel using the SHA and the raw parcel data to upload to the server.
///
/// Parcels are only accessible through a bindle, so the Bindle ID is required as well
Creates the given parcel using the SHA and the raw parcel data to upload to the server.
Parcels are only accessible through a bindle, so the Bindle ID is required as well
Creates the given parcel using the SHA and the raw parcel data to upload to the server . Parcels are only accessible through a bindle so the Bindle ID is required as well
pub async fn create_parcel<I>(
        &self,
        bindle_id: I,
        parcel_sha: &str,
        data: Vec<u8>,
    ) -> Result<()>
    where
        I: TryInto<Id>,
        I::Error: Into<ClientError>,
    {
        let parsed_id = bindle_id.try_into().map_err(|e| e.into())?;
        self.create_parcel_request(
            self.create_parcel_builder(&parsed_id, parcel_sha)
                .body(data),
        )
        .await
    }
pub async fn create_parcel < I > ( & self , bindle_id : I , parcel_sha : & str , data : Vec < u8 > , ) -> Result < ( ) > where I : TryInto < Id > , I :: Error : Into < ClientError > , { let parsed_id = bindle_id . try_into ( ) . map_err ( | e | e . into ( ) ) ? ; self . create_parcel_request ( self . create_parcel_builder ( & parsed_id , parcel_sha ) . body ( data ) , ) . await }
Creates the given parcel using the SHA and the raw parcel data to upload to the server.
Creates the given parcel using the SHA and the raw parcel data to upload to the server .
&self
bindle_id
I
parcel_sha
&str
data
Vec<u8>
&self
bindle_id
I
parcel_sha
&str
data
Vec<u8>