DatasetTarget#

pub enum DatasetTarget#

Where an ingest should land. Either an existing dataset (by RID) or a new dataset, which will be created atomically alongside the ingest — a failed ingest leaves no dataset behind.

&str / String convert to DatasetTarget::Existing; DatasetCreate converts to DatasetTarget::New, so callers can usually pass either directly without naming the enum.

Variants#

Existing(String)#
New(DatasetCreate)#

Trait implementations#

impl From<String> for DatasetTarget
fn from(rid: String) -> Self
impl From<&str> for DatasetTarget
fn from(rid: &str) -> Self
impl From<&String> for DatasetTarget
fn from(rid: &String) -> Self
impl From<DatasetCreate> for DatasetTarget
fn from(create: DatasetCreate) -> Self

Derived: Debug, Clone

Auto traits: Send, Sync, Unpin, UnwindSafe, RefUnwindSafe