pub struct SiteOptions {Show 21 fields
pub edge_url: Option<String>,
pub owner: String,
pub channels: Vec<(Arc<dyn ChannelSink>, String)>,
pub repliers: Vec<Arc<dyn ThreadReplier>>,
pub reply_template: Option<String>,
pub payments: Option<Arc<dyn PaymentDesk>>,
pub calendar: Option<Arc<dyn Calendar>>,
pub search: Vec<Arc<dyn SearchProvider>>,
pub questions: Vec<String>,
pub experiments_cron: Option<String>,
pub idle: Option<Duration>,
pub model: Option<Arc<dyn Llm>>,
pub limits: Option<Arc<dyn Fn() -> EdgeLimits + Sync + Send>>,
pub email: Option<EmailOptions>,
pub publish_delay: Option<TimeDelta>,
pub advisories: Option<(PathBuf, Arc<dyn AdvisorySource>)>,
pub certificate: Option<Arc<dyn CertificateSource>>,
pub wallet: Option<Wallet>,
pub probe: Option<ProbeOptions>,
pub channel_bindings: Option<Arc<dyn ChannelBindingStore>>,
pub chat: Option<Arc<dyn ChatAdapters>>,
}website only.Expand description
What a site is served with beyond its project.
Fields§
§edge_url: Option<String>The edge’s public URL; the site’s base URL when not set.
owner: StringThe person the owner’s decision cards and approvals go to.
channels: Vec<(Arc<dyn ChannelSink>, String)>The owner’s channels and threads, for alarms and the weekly review.
repliers: Vec<Arc<dyn ThreadReplier>>The inbox drivers’ repliers; in-thread replies are off without them.
reply_template: Option<String>The playbook template in-thread replies use.
payments: Option<Arc<dyn PaymentDesk>>A payment desk; otherwise payments.json, otherwise payments are refused.
calendar: Option<Arc<dyn Calendar>>A calendar; otherwise the CalDAV calendar in caldav.json, otherwise calendar.json,
otherwise no slot is open.
search: Vec<Arc<dyn SearchProvider>>web_search providers for AEO tracking, with the questions to ask.
questions: Vec<String>The questions AEO tracking asks.
experiments_cron: Option<String>The experiments’ daily look, a six-field cron expression; 0 30 3 * * * by default.
idle: Option<Duration>How often the update engine and measurement wake at the least; a minute by default.
model: Option<Arc<dyn Llm>>The model the Concierge answers visitors with; no public agent without one.
limits: Option<Arc<dyn Fn() -> EdgeLimits + Sync + Send>>The edge’s rate limits, made for each site.
email: Option<EmailOptions>The site’s email: nurture sequences and the outbox are off without it (spec 3.5 §5 S8).
publish_delay: Option<TimeDelta>How long a page the site drafts on its own waits before it can go live; 24 hours by default (spec 3.5 §5 S10).
advisories: Option<(PathBuf, Arc<dyn AdvisorySource>)>The edge’s Cargo.lock and where its advisories come from, for the hosting job’s
upgrade proposals (spec 3.5 §7.20).
certificate: Option<Arc<dyn CertificateSource>>Where the certificate’s expiry is read, for renewal proposals (spec 3.5 §7.20).
wallet: Option<Wallet>The owner’s wallet the Finance agent pays running costs from (spec 3.5 §7.14); no wallet tools without it.
probe: Option<ProbeOptions>The Guardian’s probe (spec 3.5 §7.20, §7.8 “Probes”, A-I9): the resolver that proves the owner’s domain claim again on every run; no probe without it.
channel_bindings: Option<Arc<dyn ChannelBindingStore>>The kernel’s chat pairings: a paired account’s message is the owner’s, so the Inbox does not read it (spec 3.5 A-I24); without them the Inbox reads every chat message handed to it.
chat: Option<Arc<dyn ChatAdapters>>The chat platforms the site talks on (spec 3.5 §10 X12): a served site runs a channel
gateway over them — a paired account’s messages are turns of the Steward, a
stranger’s go to the Inbox — and its edge serves their routes, such as WhatsApp’s
webhook. Pairings are kept in channel_bindings, else in
the kernel’s store.
Trait Implementations§
Source§impl Clone for SiteOptions
impl Clone for SiteOptions
Source§fn clone(&self) -> SiteOptions
fn clone(&self) -> SiteOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SiteOptions
impl Debug for SiteOptions
Source§impl Default for SiteOptions
impl Default for SiteOptions
Source§fn default() -> SiteOptions
fn default() -> SiteOptions
Auto Trait Implementations§
impl !RefUnwindSafe for SiteOptions
impl !UnwindSafe for SiteOptions
impl Forget for SiteOptions
impl Freeze for SiteOptionswhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<(Arc<dyn ChannelSink>, String)>: Freeze,
PhantomData<Arc<dyn ThreadReplier>>: Freeze,
*const ArcInner<dyn PaymentDesk> is !null: Freeze,
PhantomData<ArcInner<dyn PaymentDesk>>: Freeze,
*const ArcInner<dyn Calendar> is !null: Freeze,
PhantomData<ArcInner<dyn Calendar>>: Freeze,
PhantomData<Arc<dyn SearchProvider>>: Freeze,
PhantomData<String>: Freeze,
*const ArcInner<dyn Llm> is !null: Freeze,
PhantomData<ArcInner<dyn Llm>>: Freeze,
*const ArcInner<dyn Fn() -> EdgeLimits + Sync + Send> is !null: Freeze,
PhantomData<ArcInner<dyn Fn() -> EdgeLimits + Sync + Send>>: Freeze,
*const ArcInner<dyn EmailDriver> is !null: Freeze,
PhantomData<ArcInner<dyn EmailDriver>>: Freeze,
*const ArcInner<dyn TxtLookup> is !null: Freeze,
PhantomData<ArcInner<dyn TxtLookup>>: Freeze,
*const ArcInner<dyn AdvisorySource> is !null: Freeze,
PhantomData<ArcInner<dyn AdvisorySource>>: Freeze,
*const ArcInner<dyn CertificateSource> is !null: Freeze,
PhantomData<ArcInner<dyn CertificateSource>>: Freeze,
*const ArcInner<Inner> is !null: Freeze,
PhantomData<ArcInner<Inner>>: Freeze,
*const ArcInner<dyn DnsResolver> is !null: Freeze,
PhantomData<ArcInner<dyn DnsResolver>>: Freeze,
NonZero<i32>: Freeze,
Utc: Freeze,
*const ArcInner<HttpClient> is !null: Freeze,
PhantomData<ArcInner<HttpClient>>: Freeze,
PhantomData<DnsExpectation>: Freeze,
*const ArcInner<dyn ChannelBindingStore> is !null: Freeze,
PhantomData<ArcInner<dyn ChannelBindingStore>>: Freeze,
*const ArcInner<dyn ChatAdapters> is !null: Freeze,
PhantomData<ArcInner<dyn ChatAdapters>>: Freeze,
impl Move for SiteOptions
impl Send for SiteOptionswhere
RawVecInner: Send,
Arc<dyn ChannelSink>: Send,
Arc<dyn ThreadReplier>: Send,
Arc<dyn PaymentDesk>: Send,
Arc<dyn Calendar>: Send,
Arc<dyn SearchProvider>: Send,
Arc<dyn Llm>: Send,
Arc<dyn Fn() -> EdgeLimits + Sync + Send>: Send,
Arc<dyn EmailDriver>: Send,
Arc<dyn TxtLookup>: Send,
Arc<dyn AdvisorySource>: Send,
Arc<dyn CertificateSource>: Send,
Arc<Inner>: Send,
Arc<dyn DnsResolver>: Send,
NonZero<i32>: Send,
Utc: Send,
Arc<HttpClient>: Send,
NodeRef<Owned, String, SetValZST, LeafOrInternal>: Send,
BoxRaw<(String, SetValZST)>: Send,
Arc<dyn ChannelBindingStore>: Send,
Arc<dyn ChatAdapters>: Send,
impl Sync for SiteOptionswhere
RawVecInner: Sync,
Arc<dyn ChannelSink>: Sync,
Arc<dyn ThreadReplier>: Sync,
Arc<dyn PaymentDesk>: Sync,
Arc<dyn Calendar>: Sync,
Arc<dyn SearchProvider>: Sync,
Arc<dyn Llm>: Sync,
Arc<dyn Fn() -> EdgeLimits + Sync + Send>: Sync,
Arc<dyn EmailDriver>: Sync,
Arc<dyn TxtLookup>: Sync,
Arc<dyn AdvisorySource>: Sync,
Arc<dyn CertificateSource>: Sync,
Arc<Inner>: Sync,
Arc<dyn DnsResolver>: Sync,
NonZero<i32>: Sync,
Utc: Sync,
Arc<HttpClient>: Sync,
NodeRef<Owned, String, SetValZST, LeafOrInternal>: Sync,
BoxRaw<(String, SetValZST)>: Sync,
Arc<dyn ChannelBindingStore>: Sync,
Arc<dyn ChatAdapters>: Sync,
impl Unpin for SiteOptionswhere
*const u8 is !null: Unpin,
Arc<dyn ChannelSink>: Unpin,
Arc<dyn ThreadReplier>: Unpin,
Arc<dyn PaymentDesk>: Unpin,
Arc<dyn Calendar>: Unpin,
Arc<dyn SearchProvider>: Unpin,
Arc<dyn Llm>: Unpin,
Arc<dyn Fn() -> EdgeLimits + Sync + Send>: Unpin,
Arc<dyn EmailDriver>: Unpin,
Arc<dyn TxtLookup>: Unpin,
Arc<dyn AdvisorySource>: Unpin,
Arc<dyn CertificateSource>: Unpin,
Arc<Inner>: Unpin,
Arc<dyn DnsResolver>: Unpin,
NonZero<i32>: Unpin,
Utc: Unpin,
Arc<HttpClient>: Unpin,
*const LeafNode<String, SetValZST> is !null: Unpin,
Box<(String, SetValZST)>: Unpin,
Arc<dyn ChannelBindingStore>: Unpin,
Arc<dyn ChatAdapters>: Unpin,
impl UnsafeUnpin for SiteOptionswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(Arc<dyn ChannelSink>, String)>: UnsafeUnpin,
PhantomData<Arc<dyn ThreadReplier>>: UnsafeUnpin,
*const ArcInner<dyn PaymentDesk> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn PaymentDesk>>: UnsafeUnpin,
*const ArcInner<dyn Calendar> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Calendar>>: UnsafeUnpin,
PhantomData<Arc<dyn SearchProvider>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const ArcInner<dyn Llm> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Llm>>: UnsafeUnpin,
*const ArcInner<dyn Fn() -> EdgeLimits + Sync + Send> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Fn() -> EdgeLimits + Sync + Send>>: UnsafeUnpin,
*const ArcInner<dyn EmailDriver> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn EmailDriver>>: UnsafeUnpin,
*const ArcInner<dyn TxtLookup> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn TxtLookup>>: UnsafeUnpin,
*const ArcInner<dyn AdvisorySource> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn AdvisorySource>>: UnsafeUnpin,
*const ArcInner<dyn CertificateSource> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn CertificateSource>>: UnsafeUnpin,
*const ArcInner<Inner> is !null: UnsafeUnpin,
PhantomData<ArcInner<Inner>>: UnsafeUnpin,
*const ArcInner<dyn DnsResolver> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn DnsResolver>>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
Utc: UnsafeUnpin,
*const ArcInner<HttpClient> is !null: UnsafeUnpin,
PhantomData<ArcInner<HttpClient>>: UnsafeUnpin,
PhantomData<DnsExpectation>: UnsafeUnpin,
*const ArcInner<dyn ChannelBindingStore> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn ChannelBindingStore>>: UnsafeUnpin,
*const ArcInner<dyn ChatAdapters> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn ChatAdapters>>: UnsafeUnpin,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
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,
Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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> ⓘ
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> ⓘ
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 moreimpl<T> MaybeSend for Twhere
T: Send,
Source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.