LitResource

Trait LitResource 

Source
pub trait LitResource: Debug {
    // Required methods
    fn get_resource_id(&self) -> &String;
    fn get_resource_prefix(&self) -> LitResourcePrefix;

    // Provided method
    fn get_resource_key(&self) -> String { ... }
}

Required Methods§

Source

fn get_resource_id(&self) -> &String

Get the identifier for this resource.

Source

fn get_resource_prefix(&self) -> LitResourcePrefix

Get the prefix for this resource.

Provided Methods§

Source

fn get_resource_key(&self) -> String

Get the fully qualified IRI for this resource. This is compatible with the URI spec outlined here: https://datatracker.ietf.org/doc/html/rfc3986.

Implementors§