pub struct ContentConfig {
pub denied_hashes: Option<Vec<String>>,
pub denied_origins: Option<Vec<String>>,
}Expand description
Local content-denylist section of the config file (ADR 011 §Local Denylist).
The operator’s own removal lever, independent of governance: entries take effect on the next reload and bind only this node. ADR 011 §One-hour removal orders makes this the only mechanism sized to a sub-day statutory deadline (the EU TCO one-hour clock), because it is the only one entirely within the order recipient’s control.
Fields§
§denied_hashes: Option<Vec<String>>Blob hashes this node refuses to serve. Bare 64-character lowercase hex,
the same spelling as cache.pinned_hashes. An invalid entry fails
resolution rather than being skipped, so a typo in a takedown cannot
silently leave content served. Duplicates are de-duplicated, not
rejected — a repeated deny is still a deny.
denied_origins: Option<Vec<String>>Operator addresses whose payment pools this node refuses to serve.
0x-prefixed hex, checksum-agnostic (any case accepted); the zero
address is rejected.
Trait Implementations§
Source§impl Debug for ContentConfig
impl Debug for ContentConfig
Source§impl Default for ContentConfig
impl Default for ContentConfig
Source§impl<'de> Deserialize<'de> for ContentConfig
impl<'de> Deserialize<'de> for ContentConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for ContentConfig
impl RefUnwindSafe for ContentConfig
impl Send for ContentConfig
impl Sync for ContentConfig
impl Unpin for ContentConfig
impl UnsafeUnpin for ContentConfig
impl UnwindSafe for ContentConfig
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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