pub struct LocalSource { /* private fields */ }Implementations§
Source§impl LocalSource
impl LocalSource
pub fn new(force_overwrite: bool, concurrency: usize) -> Self
pub fn client(&self) -> &Client
Sourcepub async fn to_gcs(
&self,
path_src: impl AsRef<Path>,
bucket_dst: &str,
path_dst: &str,
) -> Result<usize, Error>
pub async fn to_gcs( &self, path_src: impl AsRef<Path>, bucket_dst: &str, path_dst: &str, ) -> Result<usize, Error>
Syncs local file or directory to Gcs bucket if path_src is a file then the resulting object will be [bucket_dst]/[path_dst]/[filename] where [filename] is a string after the last “/” of the path_src
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for LocalSource
impl !RefUnwindSafe for LocalSource
impl Send for LocalSource
impl Sync for LocalSource
impl Unpin for LocalSource
impl !UnwindSafe for LocalSource
Blanket Implementations§
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