pub struct Head {
pub schema: u32,
pub name: String,
pub version: String,
pub state: State,
pub public: bool,
pub granted: BTreeSet<String>,
pub exclusions: BTreeSet<String>,
pub granted_budget: Option<u64>,
pub publisher: String,
pub updated: Option<u64>,
pub history: Vec<Event>,
}Expand description
A script’s head: the mutable atom urn:script:{name} names.
Fields§
§schema: u32§name: StringThe script’s name.
version: StringThe version it points at.
state: StateIts state.
public: boolWhether it is public: runnable by holders of
CAP_RUN_PUBLIC and readable by holders of
CAP_READ_PUBLIC, once published.
granted: BTreeSet<String>The part of the version’s requires its publisher held when they published it.
exclusions: BTreeSet<String>Every exclusion the publisher’s capability carried then.
granted_budget: Option<u64>The store time budget its publisher held when they published a version declaring one
(crate::authority::budget_at_publish), in milliseconds; absent otherwise.
publisher: StringWho published the version the head points at.
updated: Option<u64>When the head last changed.
history: Vec<Event>Every change, oldest first.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Head
impl<'de> Deserialize<'de> for Head
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 Head
impl StructuralPartialEq for Head
Auto Trait Implementations§
impl Freeze for Head
impl RefUnwindSafe for Head
impl Send for Head
impl Sync for Head
impl Unpin for Head
impl UnsafeUnpin for Head
impl UnwindSafe for Head
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