pub fn new(
        path: String,
        domain: Option<String>,
        tag: Option<String>,
        digest: Option<Digest>,
    ) -> Result<RawReference> {
        let mut res = RawReference {
            path,
            domain: None,
            tag: None,
            digest,
        };

        res.set_domain(domain.as_ref().map(|s| s.as_str()))?;
        res.set_tag(tag.as_ref().map(|s| s.as_str()))?;

        Ok(res)
    }
/// Create a new RawReference from it's constituent parts.
Create a new RawReference from it's constituent parts.
Create a new RawReference from it ' s constituent parts .
pub fn new(
        path: String,
        domain: Option<String>,
        tag: Option<String>,
        digest: Option<Digest>,
    ) -> Result<RawReference> {
        let mut res = RawReference {
            path,
            domain: None,
            tag: None,
            digest,
        };
        res.set_domain(domain.as_ref().map(|s| s.as_str()))?;
        res.set_tag(tag.as_ref().map(|s| s.as_str()))?;
        Ok(res)
    }
pub fn new ( path : String , domain : Option < String > , tag : Option < String > , digest : Option < Digest > , ) -> Result < RawReference > { let mut res = RawReference { path , domain : None , tag : None , digest , } ; res . set_domain ( domain . as_ref ( ) . map ( | s | s . as_str ( ) ) ) ? ; res . set_tag ( tag . as_ref ( ) . map ( | s | s . as_str ( ) ) ) ? ; Ok ( res ) }
Create a new RawReference from it's constituent parts.
Create a new RawReference from it ' s constituent parts .
path
String
domain
Option<String>
tag
Option<String>
digest
Option<Digest>
path
String
domain
Option<String>
tag
Option<String>
digest
Option<Digest>