pub enum ScriptSource {
Source(String),
Id(String),
}
Expand description
The script itself, which you specify as source
for an inline script or
id
for a stored script. Use the
stored script APIs
to create and manage stored scripts.
Variants§
Trait Implementations§
Source§impl Clone for ScriptSource
impl Clone for ScriptSource
Source§fn clone(&self) -> ScriptSource
fn clone(&self) -> ScriptSource
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 ScriptSource
impl Debug for ScriptSource
Source§impl PartialEq for ScriptSource
impl PartialEq for ScriptSource
Source§impl Serialize for ScriptSource
impl Serialize for ScriptSource
impl Eq for ScriptSource
impl StructuralPartialEq for ScriptSource
Auto Trait Implementations§
impl Freeze for ScriptSource
impl RefUnwindSafe for ScriptSource
impl Send for ScriptSource
impl Sync for ScriptSource
impl Unpin for ScriptSource
impl UnwindSafe for ScriptSource
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