pub struct PodStore { /* private fields */ }Expand description
Safe personal-pod root on disk.
Implementations§
Source§impl PodStore
impl PodStore
Sourcepub fn ensure_defaults(&self, public_base: &str) -> Result<()>
pub fn ensure_defaults(&self, public_base: &str) -> Result<()>
Create root + default containers, WebID profile, and seed Solid stack ontologies.
Sourcepub fn seed_bundled_ontologies(&self) -> Result<()>
pub fn seed_bundled_ontologies(&self) -> Result<()>
Copy LDP / Solid / WAC / PIM / FOAF ontology files into the pod so clients
can fetch them offline from /public/ontologies/.
Sourcepub fn resolve(&self, url_path: &str) -> Result<PathBuf>
pub fn resolve(&self, url_path: &str) -> Result<PathBuf>
Resolve a URL path (/public/foo.ttl) to an absolute filesystem path.
Sourcepub fn is_container(&self, url_path: &str) -> bool
pub fn is_container(&self, url_path: &str) -> bool
true when container.
Sourcepub fn container_listing_turtle(&self, url_path: &str) -> Result<String>
pub fn container_listing_turtle(&self, url_path: &str) -> Result<String>
Minimal LDP BasicContainer listing as Turtle.
Sourcepub fn content_type_for(url_path: &str) -> &'static str
pub fn content_type_for(url_path: &str) -> &'static str
Guess content-type from path suffix.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PodStore
impl RefUnwindSafe for PodStore
impl Send for PodStore
impl Sync for PodStore
impl Unpin for PodStore
impl UnsafeUnpin for PodStore
impl UnwindSafe for PodStore
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more