pub struct ContentObjectLifecycle {
pub before_all: Option<Vec<Vec<String>>>,
pub on_add: Option<LifecycleBeforeAfterScripts>,
pub on_edit: Option<LifecycleBeforeAfterScripts>,
pub on_delete: Option<LifecycleBeforeAfterScripts>,
}Fields§
§before_all: Option<Vec<Vec<String>>>run script before all commands in the set
on_add: Option<LifecycleBeforeAfterScripts>hook for running scripts before/after an object is added via CLI or studio.
after receives the stringified JSON object as the
first stdarg.
on_edit: Option<LifecycleBeforeAfterScripts>hook for running scripts before/after an object is edited via CLI or studio.
after receives the stringified JSON object as the
first stdarg.
on_delete: Option<LifecycleBeforeAfterScripts>hook for running scripts before/after an object is deleted via CLI or studio.
after receives the stringified JSON object as the
first stdarg.
Trait Implementations§
Source§impl Clone for ContentObjectLifecycle
impl Clone for ContentObjectLifecycle
Source§fn clone(&self) -> ContentObjectLifecycle
fn clone(&self) -> ContentObjectLifecycle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for ContentObjectLifecycle
impl ComposeSchema for ContentObjectLifecycle
Source§impl Debug for ContentObjectLifecycle
impl Debug for ContentObjectLifecycle
Source§impl<'de> Deserialize<'de> for ContentObjectLifecycle
impl<'de> Deserialize<'de> for ContentObjectLifecycle
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 JsonSchema for ContentObjectLifecycle
impl JsonSchema for ContentObjectLifecycle
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Serialize for ContentObjectLifecycle
impl Serialize for ContentObjectLifecycle
Auto Trait Implementations§
impl Freeze for ContentObjectLifecycle
impl RefUnwindSafe for ContentObjectLifecycle
impl Send for ContentObjectLifecycle
impl Sync for ContentObjectLifecycle
impl Unpin for ContentObjectLifecycle
impl UnsafeUnpin for ContentObjectLifecycle
impl UnwindSafe for ContentObjectLifecycle
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