pub enum SourceUri {
Src(SourceSpec),
Artifact {
sha256: String,
},
}Variants§
Implementations§
Source§impl SourceUri
impl SourceUri
pub fn parse(input: &str) -> Result<Self, SourceUriError>
pub fn is_remote_source(&self) -> bool
pub fn as_local_hash(&self) -> Option<&str>
pub fn as_artifact_hash(&self) -> Option<&str>
pub fn to_web_path(&self) -> Option<String>
Trait Implementations§
impl Eq for SourceUri
impl StructuralPartialEq for SourceUri
Auto Trait Implementations§
impl Freeze for SourceUri
impl RefUnwindSafe for SourceUri
impl Send for SourceUri
impl Sync for SourceUri
impl Unpin for SourceUri
impl UnsafeUnpin for SourceUri
impl UnwindSafe for SourceUri
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