pub struct VettedSaved(/* private fields */);Expand description
A Saved record whose url has been scheme-checked.
Fallible, unlike VettedSubscription, because url is required. The
subscription’s siteUrl is an Option, so a rejected value has an obvious
resting place. A saved record exists to point at something, so there is no
honest way to publish one whose URL we refused — an empty string would be a
malformed record, and dropping the field would not deserialize.
Refusing is already a handled outcome at the only call site: the star handler logs a failed PDS write and keeps the local star, so the reader still sees the entry starred in this reader while nothing hostile is published under their authorship.
Implementations§
Trait Implementations§
Source§impl Clone for VettedSaved
impl Clone for VettedSaved
Source§impl Debug for VettedSaved
impl Debug for VettedSaved
Source§impl Serialize for VettedSaved
impl Serialize for VettedSaved
impl WritableRecord for VettedSaved
Auto Trait Implementations§
impl Freeze for VettedSaved
impl RefUnwindSafe for VettedSaved
impl Send for VettedSaved
impl Sync for VettedSaved
impl Unpin for VettedSaved
impl UnsafeUnpin for VettedSaved
impl UnwindSafe for VettedSaved
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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