pub enum Scenario {
Cipher(ParameterCipher),
Plain(Box<ScenarioPlain>),
}Expand description
A set of variables that can be injected into templated values when submitting an Apicize Request that may be encrypted
Variants§
Cipher(ParameterCipher)
Plain(Box<ScenarioPlain>)
Trait Implementations§
Source§impl CloneIdentifiable for Scenario
impl CloneIdentifiable for Scenario
Source§fn clone_as_new(&self, new_name: String) -> Self
fn clone_as_new(&self, new_name: String) -> Self
Create a copy with a new identifier
Source§impl<'de> Deserialize<'de> for Scenario
impl<'de> Deserialize<'de> for Scenario
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl EncryptableParameter for Scenario
impl EncryptableParameter for Scenario
Source§fn is_encrypted(&self) -> bool
fn is_encrypted(&self) -> bool
Returns True if the parameter is encrypted
Source§fn encrypt(
&self,
password: &str,
method: ParameterEncryption,
) -> Result<Scenario, ApicizeError>
fn encrypt( &self, password: &str, method: ParameterEncryption, ) -> Result<Scenario, ApicizeError>
Returns an encrypted copy of the parameter
Source§fn decrypt(
&self,
password: &str,
method: ParameterEncryption,
) -> Result<Scenario, ApicizeError>
fn decrypt( &self, password: &str, method: ParameterEncryption, ) -> Result<Scenario, ApicizeError>
Returns a decrypted copy of the parameter
Source§impl Identifiable for Scenario
impl Identifiable for Scenario
Source§impl PersistedIndex<Scenario> for IndexedEntities<Scenario>
impl PersistedIndex<Scenario> for IndexedEntities<Scenario>
Source§fn get_workbook(&self) -> Option<Vec<Scenario>>
fn get_workbook(&self) -> Option<Vec<Scenario>>
Retrieve parameters from workbook (if existing)
Source§fn get_private(&self) -> Option<Vec<Scenario>>
fn get_private(&self) -> Option<Vec<Scenario>>
Retrieve parameters from private workbook parameters file (if existing)
Source§fn get_vault(&self) -> Option<Vec<Scenario>>
fn get_vault(&self) -> Option<Vec<Scenario>>
Retrieve parameters from global vault (if existing)
fn new( workbook: Option<Vec<Scenario>>, private: Option<Vec<Scenario>>, vault: Option<Vec<Scenario>>, ) -> IndexedEntities<Scenario>
Source§impl Validated for Scenario
impl Validated for Scenario
Source§fn get_validation_state(&self) -> ValidationState
fn get_validation_state(&self) -> ValidationState
Return state
impl StructuralPartialEq for Scenario
Auto Trait Implementations§
impl Freeze for Scenario
impl RefUnwindSafe for Scenario
impl Send for Scenario
impl Sync for Scenario
impl Unpin for Scenario
impl UnsafeUnpin for Scenario
impl UnwindSafe for Scenario
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