pub struct TriggerAppArgs {
pub allow_transient_write: bool,
pub key_values: Vec<(String, String)>,
pub sqlite_statements: Vec<String>,
pub max_instance_memory: Option<usize>,
pub variable: Vec<VariableSource>,
/* private fields */
}Expand description
Options for building a TriggerFactors.
Fields§
§allow_transient_write: boolSet the static assets of the components in the temporary directory as writable.
key_values: Vec<(String, String)>Set a key/value pair (key=value) in the application’s default store. Any existing value will be overwritten. Can be used multiple times.
sqlite_statements: Vec<String>Run a SQLite statement such as a migration against the default database. To run from a file, prefix the filename with @ e.g. spin up –sqlite @migration.sql
max_instance_memory: Option<usize>Sets the maxmimum memory allocation limit for an instance in bytes.
variable: Vec<VariableSource>Variable(s) to be passed to the app
A single key-value pair can be passed as key=value, or key=@file to
read the value from a text file. Alternatively, any number of key-value
pairs may be passed via a JSON or TOML file using the syntax @file.json or
@file.toml.
This option may be repeated. If the same key is specified multiple times the last value will be used.
Implementations§
Trait Implementations§
Source§impl Args for TriggerAppArgs
impl Args for TriggerAppArgs
Source§impl Default for TriggerAppArgs
impl Default for TriggerAppArgs
Source§fn default() -> TriggerAppArgs
fn default() -> TriggerAppArgs
Source§impl FromArgMatches for TriggerAppArgs
impl FromArgMatches for TriggerAppArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Auto Trait Implementations§
impl !Freeze for TriggerAppArgs
impl !RefUnwindSafe for TriggerAppArgs
impl Send for TriggerAppArgs
impl !Sync for TriggerAppArgs
impl Unpin for TriggerAppArgs
impl UnwindSafe for TriggerAppArgs
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
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
self file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
self file descriptor. Read moreSource§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request