pub enum PrivacyLevel {
Full,
Moderate,
Coarse,
}Expand description
How much detail the installation keeps. Mirrors the privacy_level enum.
Variants§
Full
Everything the agent sends. What every version before 0.10.0 did, and the default: narrowing is the deliberate act.
Moderate
Times without the words. Pauses keep when they happened but not the reason typed into them; tasks keep their names but not their comments.
Coarse
Hours, not a timeline. A day keeps its start, its end, and how much of it was paused as a count and a total; individual pauses and tasks are not stored at all.
Implementations§
Source§impl PrivacyLevel
impl PrivacyLevel
Sourcepub fn keeps_free_text(self) -> bool
pub fn keeps_free_text(self) -> bool
Whether free text the employee typed is kept - pause reasons and task comments. These go first because they are the only fields where a person writes about themselves in their own words.
Sourcepub fn keeps_pause_times(self) -> bool
pub fn keeps_pause_times(self) -> bool
Whether individual pauses are stored, rather than summarized.
Sourcepub fn keeps_tasks(self) -> bool
pub fn keeps_tasks(self) -> bool
Whether tasks are stored at all.
Trait Implementations§
Source§impl Clone for PrivacyLevel
impl Clone for PrivacyLevel
Source§fn clone(&self) -> PrivacyLevel
fn clone(&self) -> PrivacyLevel
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for PrivacyLevel
Source§impl Debug for PrivacyLevel
impl Debug for PrivacyLevel
Source§impl<'r> Decode<'r, Postgres> for PrivacyLevel
impl<'r> Decode<'r, Postgres> for PrivacyLevel
Source§impl<'de> Deserialize<'de> for PrivacyLevel
impl<'de> Deserialize<'de> for PrivacyLevel
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>,
Source§impl<'q, DB: Database> Encode<'q, DB> for PrivacyLevel
impl<'q, DB: Database> Encode<'q, DB> for PrivacyLevel
Source§fn encode_by_ref(
&self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut <DB as Database>::ArgumentBuffer, ) -> Result<IsNull, BoxDynError>
fn size_hint(&self) -> usize
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
impl Eq for PrivacyLevel
Source§impl PartialEq for PrivacyLevel
impl PartialEq for PrivacyLevel
Source§impl PgHasArrayType for PrivacyLevel
impl PgHasArrayType for PrivacyLevel
fn array_type_info() -> PgTypeInfo
fn array_compatible(ty: &PgTypeInfo) -> bool
Source§impl Serialize for PrivacyLevel
impl Serialize for PrivacyLevel
impl StructuralPartialEq for PrivacyLevel
Auto Trait Implementations§
impl Freeze for PrivacyLevel
impl RefUnwindSafe for PrivacyLevel
impl Send for PrivacyLevel
impl Sync for PrivacyLevel
impl Unpin for PrivacyLevel
impl UnsafeUnpin for PrivacyLevel
impl UnwindSafe for PrivacyLevel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> ⓘ
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