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§
Sourcefn get_resource_id(&self) -> &String
fn get_resource_id(&self) -> &String
Get the identifier for this resource.
Sourcefn get_resource_prefix(&self) -> LitResourcePrefix
fn get_resource_prefix(&self) -> LitResourcePrefix
Get the prefix for this resource.
Provided Methods§
Sourcefn get_resource_key(&self) -> String
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.