pub struct LifecycleLine {
pub state: String,
pub serves_reads: bool,
pub accepts_record_writes: bool,
pub provisions_accounts: bool,
pub claim_standing: bool,
}Expand description
What this deployment is doing right now, for a reader with no credential.
The same snapshot routes::require_lifecycle refuses from, so a page
saying a deployment serves reads and a 503 saying it does not cannot
both be answered at once. Every field is already visible to a caller who
tries the route and reads the refusal; this is that fact stated once,
where it can be read without provoking one.
Fields§
§state: StringWhere the deployment is; see didbot_pds::ServerState.
serves_reads: bool§accepts_record_writes: bool§provisions_accounts: bool§claim_standing: boolImplementations§
Source§impl LifecycleLine
impl LifecycleLine
Sourcepub fn from_snapshot(snapshot: &LifecycleSnapshot) -> Self
pub fn from_snapshot(snapshot: &LifecycleSnapshot) -> Self
Reads one snapshot of the lifecycle.
Trait Implementations§
Source§impl Clone for LifecycleLine
impl Clone for LifecycleLine
Source§fn clone(&self) -> LifecycleLine
fn clone(&self) -> LifecycleLine
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LifecycleLine
impl Debug for LifecycleLine
Source§impl<'de> Deserialize<'de> for LifecycleLine
impl<'de> Deserialize<'de> for LifecycleLine
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
Source§impl PartialEq for LifecycleLine
impl PartialEq for LifecycleLine
Source§fn eq(&self, other: &LifecycleLine) -> bool
fn eq(&self, other: &LifecycleLine) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LifecycleLine
impl Serialize for LifecycleLine
impl Eq for LifecycleLine
impl StructuralPartialEq for LifecycleLine
Auto Trait Implementations§
impl Freeze for LifecycleLine
impl RefUnwindSafe for LifecycleLine
impl Send for LifecycleLine
impl Sync for LifecycleLine
impl Unpin for LifecycleLine
impl UnsafeUnpin for LifecycleLine
impl UnwindSafe for LifecycleLine
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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