#[non_exhaustive]pub struct PostStartupScriptConfig {
pub post_startup_script: String,
pub post_startup_script_url: String,
pub post_startup_script_behavior: PostStartupScriptBehavior,
/* private fields */
}Expand description
Post startup script config.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.post_startup_script: StringOptional. Post startup script to run after runtime is started.
post_startup_script_url: StringOptional. Post startup script url to download. Example: https://bucket/script.sh
post_startup_script_behavior: PostStartupScriptBehaviorOptional. Post startup script behavior that defines download and execution behavior.
Implementations§
Source§impl PostStartupScriptConfig
impl PostStartupScriptConfig
pub fn new() -> Self
Sourcepub fn set_post_startup_script<T: Into<String>>(self, v: T) -> Self
pub fn set_post_startup_script<T: Into<String>>(self, v: T) -> Self
Sets the value of post_startup_script.
Sourcepub fn set_post_startup_script_url<T: Into<String>>(self, v: T) -> Self
pub fn set_post_startup_script_url<T: Into<String>>(self, v: T) -> Self
Sets the value of post_startup_script_url.
Sourcepub fn set_post_startup_script_behavior<T: Into<PostStartupScriptBehavior>>(
self,
v: T,
) -> Self
pub fn set_post_startup_script_behavior<T: Into<PostStartupScriptBehavior>>( self, v: T, ) -> Self
Sets the value of post_startup_script_behavior.
Trait Implementations§
Source§impl Clone for PostStartupScriptConfig
impl Clone for PostStartupScriptConfig
Source§fn clone(&self) -> PostStartupScriptConfig
fn clone(&self) -> PostStartupScriptConfig
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 PostStartupScriptConfig
impl Debug for PostStartupScriptConfig
Source§impl Default for PostStartupScriptConfig
impl Default for PostStartupScriptConfig
Source§fn default() -> PostStartupScriptConfig
fn default() -> PostStartupScriptConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PostStartupScriptConfigwhere
PostStartupScriptConfig: Default,
impl<'de> Deserialize<'de> for PostStartupScriptConfigwhere
PostStartupScriptConfig: Default,
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 Message for PostStartupScriptConfig
impl Message for PostStartupScriptConfig
Source§impl PartialEq for PostStartupScriptConfig
impl PartialEq for PostStartupScriptConfig
Source§impl Serialize for PostStartupScriptConfig
impl Serialize for PostStartupScriptConfig
impl StructuralPartialEq for PostStartupScriptConfig
Auto Trait Implementations§
impl Freeze for PostStartupScriptConfig
impl RefUnwindSafe for PostStartupScriptConfig
impl Send for PostStartupScriptConfig
impl Sync for PostStartupScriptConfig
impl Unpin for PostStartupScriptConfig
impl UnwindSafe for PostStartupScriptConfig
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