pub enum State {
Draft,
Published,
Retired,
}Expand description
A script’s lifecycle state.
Variants§
Draft
Saved, not runnable, and PRIVATE until published: a version that was never published is visible only to its author (the principal their capability named when they wrote it) and to root. To every other holder of the script’s read or run grant it is absent.
Published
Runnable.
Retired
Retired by a Delete: still readable, versions still fetchable, never runnable.
Implementations§
Trait Implementations§
impl Copy for State
Source§impl<'de> Deserialize<'de> for State
impl<'de> Deserialize<'de> for State
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 Eq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnsafeUnpin for State
impl UnwindSafe for State
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