pub struct ServerProfile {
pub profile: String,
pub read_only: bool,
pub label: String,
pub writable_repo_count: i32,
}Expand description
Server operating profile (mirror of the proto ServerProfileResponse).
This is server truth: whether the server accepts writes at all, derived from the live route table (or an explicit sealed-mode override). The UI drives its static “silent running” chrome off this rather than a local toggle.
Fields§
§profile: String“static” (sealed / read-only) or “dynamic” (writable / proxy).
read_only: boolTrue when the server accepts no writes on any repository.
label: StringHuman label for the UI chrome / badge.
writable_repo_count: i32Number of configured repositories that accept writes.
Trait Implementations§
Source§impl Clone for ServerProfile
impl Clone for ServerProfile
Source§impl Debug for ServerProfile
impl Debug for ServerProfile
Source§impl Default for ServerProfile
impl Default for ServerProfile
Source§impl<'de> Deserialize<'de> for ServerProfile
impl<'de> Deserialize<'de> for ServerProfile
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 Eq for ServerProfile
Source§impl PartialEq for ServerProfile
impl PartialEq for ServerProfile
Source§impl Serialize for ServerProfile
impl Serialize for ServerProfile
impl StructuralPartialEq for ServerProfile
Auto Trait Implementations§
impl Forget for ServerProfile
impl Freeze for ServerProfile
impl RefUnwindSafe for ServerProfile
impl Send for ServerProfile
impl Sync for ServerProfile
impl Unpin for ServerProfile
impl UnsafeUnpin for ServerProfile
impl UnwindSafe for ServerProfile
Blanket Implementations§
impl<T> Allocation for T
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
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,
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§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
Compare self to
key and return true if they are equal.