pub struct CollectionSourceV1 { /* private fields */ }Expand description
One source declaration, with safe relative locators but no host I/O state.
Implementations§
Source§impl CollectionSourceV1
impl CollectionSourceV1
Sourcepub fn new(
key: CollectionSourceKeyV1,
path: DependencyResourceKeyV1,
config: Option<DependencyResourceKeyV1>,
expected_sha256: Option<CollectionDigestPinV1>,
) -> Self
pub fn new( key: CollectionSourceKeyV1, path: DependencyResourceKeyV1, config: Option<DependencyResourceKeyV1>, expected_sha256: Option<CollectionDigestPinV1>, ) -> Self
Construct one source declaration.
Sourcepub fn key(&self) -> &CollectionSourceKeyV1
pub fn key(&self) -> &CollectionSourceKeyV1
Manifest-local source key.
Sourcepub fn path(&self) -> &DependencyResourceKeyV1
pub fn path(&self) -> &DependencyResourceKeyV1
Safe source locator resolved under the optional input root.
Sourcepub fn config(&self) -> Option<&DependencyResourceKeyV1>
pub fn config(&self) -> Option<&DependencyResourceKeyV1>
Optional safe config locator resolved under the manifest directory.
Sourcepub fn expected_sha256(&self) -> Option<&CollectionDigestPinV1>
pub fn expected_sha256(&self) -> Option<&CollectionDigestPinV1>
Optional asserted source digest.
Trait Implementations§
Source§impl Clone for CollectionSourceV1
impl Clone for CollectionSourceV1
Source§fn clone(&self) -> CollectionSourceV1
fn clone(&self) -> CollectionSourceV1
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 CollectionSourceV1
impl Debug for CollectionSourceV1
impl Eq for CollectionSourceV1
Source§impl PartialEq for CollectionSourceV1
impl PartialEq for CollectionSourceV1
Source§impl Serialize for CollectionSourceV1
impl Serialize for CollectionSourceV1
impl StructuralPartialEq for CollectionSourceV1
Auto Trait Implementations§
impl Freeze for CollectionSourceV1
impl RefUnwindSafe for CollectionSourceV1
impl Send for CollectionSourceV1
impl Sync for CollectionSourceV1
impl Unpin for CollectionSourceV1
impl UnsafeUnpin for CollectionSourceV1
impl UnwindSafe for CollectionSourceV1
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