pub struct Snippet {
pub name: String,
pub description: String,
pub code: String,
pub saved_at: u64,
pub input_schema: Option<Value>,
pub connectors: Vec<String>,
}Expand description
A saved, addressable sandbox program.
Fields§
§name: StringUnique snippet name.
description: StringHuman-readable search description.
code: StringAsync JavaScript function source.
saved_at: u64Save time in Unix milliseconds.
input_schema: Option<Value>Optional input JSON Schema.
connectors: Vec<String>Connectors required by the saved program.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Snippet
impl<'de> Deserialize<'de> for Snippet
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
impl StructuralPartialEq for Snippet
Auto Trait Implementations§
impl Freeze for Snippet
impl RefUnwindSafe for Snippet
impl Send for Snippet
impl Sync for Snippet
impl Unpin for Snippet
impl UnsafeUnpin for Snippet
impl UnwindSafe for Snippet
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