pub struct Script {
pub script_id: String,
pub script_name: String,
pub signature_json: Value,
pub signature_hash: String,
pub created_at: DateTime<Utc>,
}Expand description
A registered script in the database.
Scripts are auto-discovered via #[chronon::script] and persisted
for reference by jobs.
Fields§
§script_id: StringUnique identifier (UUID).
script_name: StringUnique stable name from the macro attribute.
signature_json: ValueJSON schema for parameters (excluding context).
signature_hash: StringHash of signature_json for version checking.
created_at: DateTime<Utc>When the script was first registered.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Script
impl<'de> Deserialize<'de> for Script
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
Auto Trait Implementations§
impl Freeze for Script
impl RefUnwindSafe for Script
impl Send for Script
impl Sync for Script
impl Unpin for Script
impl UnsafeUnpin for Script
impl UnwindSafe for Script
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