pub struct CollectionManifestV1 { /* private fields */ }Expand description
Fully validated V1 collection declaration, canonically ordered by stable ids.
Implementations§
Source§impl CollectionManifestV1
impl CollectionManifestV1
Sourcepub fn new(
collection_id: CollectionIdV1,
input_root: Option<DependencyResourceKeyV1>,
sources: Vec<CollectionSourceV1>,
clips: Vec<CollectionClipV1>,
runtime_sets: Vec<CollectionRuntimeSetV1>,
) -> Result<Self, CollectionManifestError>
pub fn new( collection_id: CollectionIdV1, input_root: Option<DependencyResourceKeyV1>, sources: Vec<CollectionSourceV1>, clips: Vec<CollectionClipV1>, runtime_sets: Vec<CollectionRuntimeSetV1>, ) -> Result<Self, CollectionManifestError>
Construct and validate one V1 manifest.
Sources, clips, and runtime sets are sorted by their stable ids. A set’s member order remains exactly as declared.
§Errors
Returns CollectionManifestError when a declaration is incomplete,
ambiguous, dangling, outside the collection namespace, or exceeds a
frozen V1 bound.
Sourcepub const fn schema_version(&self) -> u32
pub const fn schema_version(&self) -> u32
Immutable V1 schema version.
Sourcepub fn collection_id(&self) -> &CollectionIdV1
pub fn collection_id(&self) -> &CollectionIdV1
Collection namespace token.
Sourcepub fn input_root(&self) -> Option<&DependencyResourceKeyV1>
pub fn input_root(&self) -> Option<&DependencyResourceKeyV1>
Optional safe source-root locator below the manifest directory.
Sourcepub fn sources(&self) -> &[CollectionSourceV1]
pub fn sources(&self) -> &[CollectionSourceV1]
Sources in canonical source-key order.
Sourcepub fn clips(&self) -> &[CollectionClipV1]
pub fn clips(&self) -> &[CollectionClipV1]
Clips in canonical logical-id order.
Sourcepub fn runtime_sets(&self) -> &[CollectionRuntimeSetV1]
pub fn runtime_sets(&self) -> &[CollectionRuntimeSetV1]
Runtime sets in canonical logical-id order; each set retains member order.
Trait Implementations§
Source§impl Clone for CollectionManifestV1
impl Clone for CollectionManifestV1
Source§fn clone(&self) -> CollectionManifestV1
fn clone(&self) -> CollectionManifestV1
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 CollectionManifestV1
impl Debug for CollectionManifestV1
impl Eq for CollectionManifestV1
Source§impl PartialEq for CollectionManifestV1
impl PartialEq for CollectionManifestV1
Source§impl Serialize for CollectionManifestV1
impl Serialize for CollectionManifestV1
impl StructuralPartialEq for CollectionManifestV1
Auto Trait Implementations§
impl Freeze for CollectionManifestV1
impl RefUnwindSafe for CollectionManifestV1
impl Send for CollectionManifestV1
impl Sync for CollectionManifestV1
impl Unpin for CollectionManifestV1
impl UnsafeUnpin for CollectionManifestV1
impl UnwindSafe for CollectionManifestV1
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