pub struct TagConfig {
pub selectors: Vec<Selector>,
pub max_bytes: usize,
pub min_seconds_between_fetch: i64,
pub persist_across_boot: bool,
}Expand description
Configuration for a single tag for a single service.
See [TaggedPersist] for the meaning of corresponding fields.
Fields§
§selectors: Vec<Selector>These selectors will be fetched and stored for publication on the next boot.
max_bytes: usizeThis is the max size of the file saved, which is the JSON-serialized version of the selectors’ data.
min_seconds_between_fetch: i64Persistence requests will be throttled to this. Requests received early will be delayed.
persist_across_boot: boolShould this tag persist across multiple reboots?
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TagConfig
impl<'de> Deserialize<'de> for TagConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for TagConfig
Auto Trait Implementations§
impl Freeze for TagConfig
impl RefUnwindSafe for TagConfig
impl Send for TagConfig
impl Sync for TagConfig
impl Unpin for TagConfig
impl UnwindSafe for TagConfig
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<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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