pub struct ConfigCheck {
pub valid: bool,
pub message: String,
pub warnings: Vec<String>,
pub memory_caps: Option<u64>,
pub memory_max: Option<u64>,
}Expand description
POST /v1/config/check and PUT /v1/config: what runnerd check-config prints for a config. PUT refuses
an invalid one with 422 and this body, which has an ErrorResponse’s message.
Fields§
§valid: boolWhether the daemon can run it.
message: Stringvalid, memory caps sum to …, or why it is not valid.
warnings: Vec<String>What a valid config should still fix.
memory_caps: Option<u64>Bytes every runner and the mirror may use at once, when it parses.
memory_max: Option<u64>The MemoryMax of the slice it names; None when unlimited or unknown.
Trait Implementations§
Source§impl Clone for ConfigCheck
impl Clone for ConfigCheck
Source§impl Debug for ConfigCheck
impl Debug for ConfigCheck
Source§impl<'de> Deserialize<'de> for ConfigCheck
impl<'de> Deserialize<'de> for ConfigCheck
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 ConfigCheck
Source§impl PartialEq for ConfigCheck
impl PartialEq for ConfigCheck
Source§impl Serialize for ConfigCheck
impl Serialize for ConfigCheck
impl StructuralPartialEq for ConfigCheck
Auto Trait Implementations§
impl Freeze for ConfigCheck
impl RefUnwindSafe for ConfigCheck
impl Send for ConfigCheck
impl Sync for ConfigCheck
impl Unpin for ConfigCheck
impl UnsafeUnpin for ConfigCheck
impl UnwindSafe for ConfigCheck
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