Module rdftk_iri::builder [−][src]
Expand description
Provides a builder experience for creating IRI
instances. The IriBuilder
type provides a simple API to create new IRI
instances in a fluent style.
Example
use rdftk_iri::{builder::IriBuilder, IRI, error::Result as IriResult, Scheme}; use std::convert::TryInto; fn make_example_iri() -> IriResult<IRI> { let mut builder = IriBuilder::default(); builder .scheme(&Scheme::https()) .user_name("john.doe") .host_str("www.example.com")? .port(123.into()) .path_str("/forum/questions/")? .query_str("tag=networking&order=newest")? .fragment_str("top")? .try_into() }
Structs
IriBuilder | The builder type, this provides simple API access to create new |