pub struct Declaration {
pub canon_templates: Vec<String>,
pub profiles: Vec<ProfileDeclaration>,
pub managed: Vec<Projection>,
pub adopted: Vec<Projection>,
pub sentinels: Vec<SentinelDeclaration>,
}Expand description
Everything one release declares about what it lands.
Fields§
§canon_templates: Vec<String>The template copies the canon keeps in its own documentation tree.
profiles: Vec<ProfileDeclaration>Every profile the release offers.
managed: Vec<Projection>Byte projections the canon keeps owning.
adopted: Vec<Projection>Seeds the instance owns from the moment they land.
sentinels: Vec<SentinelDeclaration>One sentinel per feature a project can declare.
Implementations§
Source§impl Declaration
impl Declaration
Sourcepub fn parse(bytes: &[u8]) -> Result<Self, DeclarationError>
pub fn parse(bytes: &[u8]) -> Result<Self, DeclarationError>
Read a declaration, refusing a schema this engine does not decode.
§Errors
DeclarationError when the bytes do not parse or when the
declaration contradicts itself.
Trait Implementations§
Source§impl Clone for Declaration
impl Clone for Declaration
Source§fn clone(&self) -> Declaration
fn clone(&self) -> Declaration
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Declaration
impl Debug for Declaration
Source§impl<'de> Deserialize<'de> for Declaration
impl<'de> Deserialize<'de> for Declaration
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 Declaration
Source§impl PartialEq for Declaration
impl PartialEq for Declaration
Source§impl Serialize for Declaration
impl Serialize for Declaration
impl StructuralPartialEq for Declaration
Auto Trait Implementations§
impl Freeze for Declaration
impl RefUnwindSafe for Declaration
impl Send for Declaration
impl Sync for Declaration
impl Unpin for Declaration
impl UnsafeUnpin for Declaration
impl UnwindSafe for Declaration
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.