pub struct ServedStanding {
pub expected: String,
pub observations: String,
pub unreadable: usize,
pub deployments: Vec<DeploymentStanding>,
}Expand description
Every deployment’s standing against one commit: the answer served.show gives on the
command line, over HTTP and to an MCP client, from one derivation.
use majordomus_cli::capability::builtin::served::{standing, ServedStanding};
use majordomus_cli::served::{Ancestry, OBSERVATIONS_PATH};
let dir = tempfile::tempdir().unwrap();
let s: ServedStanding = standing(dir.path(), &"a".repeat(40), None, &A);
assert_eq!(s.observations, OBSERVATIONS_PATH);
assert!(s.deployments.is_empty(), "nothing observed yet");
assert_eq!(s.unreadable, 0);Fields§
§expected: StringThe full commit every record was re-judged against.
observations: StringThe checkout-local file the records were read from.
unreadable: usizeLines of that file that were not readable observations.
deployments: Vec<DeploymentStanding>One entry per deployment observed, in name order.
Trait Implementations§
Source§impl Clone for ServedStanding
impl Clone for ServedStanding
Source§fn clone(&self) -> ServedStanding
fn clone(&self) -> ServedStanding
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 ServedStanding
impl Debug for ServedStanding
Source§impl<'de> Deserialize<'de> for ServedStanding
impl<'de> Deserialize<'de> for ServedStanding
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 JsonSchema for ServedStanding
impl JsonSchema for ServedStanding
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for ServedStanding
impl RefUnwindSafe for ServedStanding
impl Send for ServedStanding
impl Sync for ServedStanding
impl Unpin for ServedStanding
impl UnsafeUnpin for ServedStanding
impl UnwindSafe for ServedStanding
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