pub(crate) enum ExperimentSource {
FromList {
slug: String,
list: ExperimentListSource,
},
FromFeatureFiles {
app: NimbusApp,
feature_id: String,
files: Vec<PathBuf>,
},
FromApiV6 {
slug: String,
endpoint: String,
},
WithPatchFile {
patch: PathBuf,
inner: Box<ExperimentSource>,
},
}
Variants§
Implementations§
source§impl ExperimentSource
impl ExperimentSource
pub(crate) fn print_features<P>( &self, branch: &String, manifest_source: &ManifestSource, feature_id: Option<&String>, validate: bool, multi: bool, output: Option<P>, ) -> Result<bool>
fn get_features_json( &self, manifest_source: &ManifestSource, feature_id: Option<&String>, branch: &String, validate: bool, multi: bool, ) -> Result<Value>
source§impl ExperimentSource
impl ExperimentSource
fn try_from_slug<'a>( value: &'a str, production: &'a str, stage: &'a str, ) -> Result<(&'a str, &'a str, bool)>
fn try_from_rs(value: &str) -> Result<Self>
fn try_from_url(value: &str) -> Result<Self>
fn try_from_api(value: &str) -> Result<Self>
pub(crate) fn try_from_file(file: &Path, slug: &str) -> Result<Self>
Trait Implementations§
source§impl Clone for ExperimentSource
impl Clone for ExperimentSource
source§fn clone(&self) -> ExperimentSource
fn clone(&self) -> ExperimentSource
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ExperimentSource
impl Debug for ExperimentSource
source§impl Display for ExperimentSource
impl Display for ExperimentSource
source§impl PartialEq for ExperimentSource
impl PartialEq for ExperimentSource
source§impl TryFrom<&Cli> for ExperimentSource
impl TryFrom<&Cli> for ExperimentSource
source§impl TryFrom<&ExperimentArgs> for ExperimentSource
impl TryFrom<&ExperimentArgs> for ExperimentSource
source§impl TryFrom<&ExperimentSource> for Value
impl TryFrom<&ExperimentSource> for Value
impl StructuralPartialEq for ExperimentSource
Auto Trait Implementations§
impl Freeze for ExperimentSource
impl RefUnwindSafe for ExperimentSource
impl Send for ExperimentSource
impl Sync for ExperimentSource
impl Unpin for ExperimentSource
impl UnwindSafe for ExperimentSource
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
Read more