pub struct RemoteCopySpec { /* private fields */ }Expand description
A remote-copy operation: a table from another cluster onto this one.
The only operation whose input lives somewhere else. cluster_name is the
source, as this cluster’s configuration names it; the operation runs
here, and the output path is here too.
use ytsaurus_client::RemoteCopySpec;
let spec = RemoteCopySpec::new("hahn", ["//tmp/theirs"], "//tmp/ours")
.with_copy_attributes(true);Implementations§
Source§impl RemoteCopySpec
impl RemoteCopySpec
Sourcepub fn new<I>(
cluster_name: impl Into<String>,
inputs: I,
output: impl Into<String>,
) -> Self
pub fn new<I>( cluster_name: impl Into<String>, inputs: I, output: impl Into<String>, ) -> Self
Copies inputs from the cluster cluster_name into output here.
Sourcepub fn with_network_name(self, network: impl Into<String>) -> Self
pub fn with_network_name(self, network: impl Into<String>) -> Self
Uses a named network to reach the source cluster.
Installations that separate networks need this; one that does not answers fine without it.
Sourcepub fn with_copy_attributes(self, copy: bool) -> Self
pub fn with_copy_attributes(self, copy: bool) -> Self
Copies the source table’s attributes along with its rows.
Off in the cluster’s default, so a copy otherwise arrives with the rows and none of what was said about them.
Sourcepub fn with_attribute_keys<K>(self, keys: K) -> Self
pub fn with_attribute_keys<K>(self, keys: K) -> Self
Copies only these attributes, rather than all of them.
Only meaningful with RemoteCopySpec::with_copy_attributes.
Trait Implementations§
Source§impl Clone for RemoteCopySpec
impl Clone for RemoteCopySpec
Source§fn clone(&self) -> RemoteCopySpec
fn clone(&self) -> RemoteCopySpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RemoteCopySpec
impl RefUnwindSafe for RemoteCopySpec
impl Send for RemoteCopySpec
impl Sync for RemoteCopySpec
impl Unpin for RemoteCopySpec
impl UnsafeUnpin for RemoteCopySpec
impl UnwindSafe for RemoteCopySpec
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