pub struct SpoolSettings {
pub audience: i32,
pub default_state_audience: i32,
pub description: String,
pub allow_child_creation: bool,
pub require_review_to_land: bool,
pub abandoned_thread_retention: Option<Duration>,
pub default_review_policy: Option<RecordRef>,
pub hold_lifecycle: i32,
}Expand description
Fresh bootstrap permits child creation and has no implicit approval mandate. Explicit review policies still apply. A revision supplies the complete record; its settings participate in the observed review policy version.
Mutation is SpoolService.ReviseSpool under delegated AUTHORIZATION_ROLE_RESOURCE_ADMINISTRATOR. An owner signature is not a prerequisite; independent of signed-policy expected_head CAS. audience / default_state_audience MUST NOT exceed the standing inherited owner-signed max_audience (min over this spool’s tip and every ancestor’s tip; absent tip or absent field contributes nothing; present UNSPECIFIED fails closed). Tightening does not recall already-cloned public bytes.
Intentionally absent versus v1: write_policy (never enforced), bootstrap_kind / bootstrap_source / bootstrap_sync_direction / initial_tooling (create-time), sync_behavior (thread-domain). Format 1 has no signed forbid_child_creation.
Fields§
§audience: i32Bounded by the standing inherited max_audience ceiling.
default_state_audience: i32Must be <= audience. Also bounded by the inherited ceiling.
description: String§allow_child_creation: boolDelegated. Lossy versus v1 DISABLED / MAINTAINERS / DEVELOPERS. The inherited max_audience ceiling, not this flag, is what stops a PUBLIC child from disclosing a locked PRIVATE ancestor.
require_review_to_land: bool§abandoned_thread_retention: Option<Duration>§default_review_policy: Option<RecordRef>§hold_lifecycle: i32Opaque compare-and-swap version belongs to the containing spool record.
Implementations§
Source§impl SpoolSettings
impl SpoolSettings
Sourcepub fn audience(&self) -> Audience
pub fn audience(&self) -> Audience
Returns the enum value of audience, or the default if the field is set to an invalid enum value.
Sourcepub fn set_audience(&mut self, value: Audience)
pub fn set_audience(&mut self, value: Audience)
Sets audience to the provided enum value.
Sourcepub fn default_state_audience(&self) -> Audience
pub fn default_state_audience(&self) -> Audience
Returns the enum value of default_state_audience, or the default if the field is set to an invalid enum value.
Sourcepub fn set_default_state_audience(&mut self, value: Audience)
pub fn set_default_state_audience(&mut self, value: Audience)
Sets default_state_audience to the provided enum value.
Sourcepub fn hold_lifecycle(&self) -> HoldLifecycle
pub fn hold_lifecycle(&self) -> HoldLifecycle
Returns the enum value of hold_lifecycle, or the default if the field is set to an invalid enum value.
Sourcepub fn set_hold_lifecycle(&mut self, value: HoldLifecycle)
pub fn set_hold_lifecycle(&mut self, value: HoldLifecycle)
Sets hold_lifecycle to the provided enum value.
Trait Implementations§
Source§impl Clone for SpoolSettings
impl Clone for SpoolSettings
Source§fn clone(&self) -> SpoolSettings
fn clone(&self) -> SpoolSettings
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 SpoolSettings
impl Debug for SpoolSettings
Source§impl Default for SpoolSettings
impl Default for SpoolSettings
Source§fn default() -> SpoolSettings
fn default() -> SpoolSettings
impl Eq for SpoolSettings
Source§impl Hash for SpoolSettings
impl Hash for SpoolSettings
Source§impl Message for SpoolSettings
impl Message for SpoolSettings
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for SpoolSettings
impl PartialEq for SpoolSettings
impl StructuralPartialEq for SpoolSettings
Auto Trait Implementations§
impl Freeze for SpoolSettings
impl RefUnwindSafe for SpoolSettings
impl Send for SpoolSettings
impl Sync for SpoolSettings
impl Unpin for SpoolSettings
impl UnsafeUnpin for SpoolSettings
impl UnwindSafe for SpoolSettings
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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 more