fn url(&self) -> String {
        let date = &self.metadata.date;

        // TODO: I'd like to return a String here, but url::Url doesn't allow non-relative URLs. We
        // could work around this if we knew the server name.
        format!(
            "/blog/{}/{}/{}/{}",
            date.year(),
            date.month(),
            date.day(),
            self.slug()
        )
    }
/// Returns a relative URL to the given post.
Returns a relative URL to the given post.
Returns a relative URL to the given post .
fn url(&self) -> String {
        let date = &self.metadata.date;
        // TODO: I'd like to return a String here, but url::Url doesn't allow non-relative URLs. We
        // could work around this if we knew the server name.
        format!(
            "/blog/{}/{}/{}/{}",
            date.year(),
            date.month(),
            date.day(),
            self.slug()
        )
    }
fn url ( & self ) -> String { let date = & self . metadata . date ; // TODO: I'd like to return a String here, but url::Url doesn't allow non-relative URLs. We // could work around this if we knew the server name. format ! ( " " date year ( ) date month ( ) date day ( ) self slug ( ) ) }
Returns a relative URL to the given post.
Returns a relative URL to the given post .
&self
&self