pub struct FleetRole {
pub name: String,
pub description: Option<String>,
pub instructions: Option<String>,
}Expand description
Semantic role declaration for a fleet profile.
TOML may use either role = "reviewer" or a role table with name and
instructions.
Fields§
§name: StringStable role name, e.g. scout, implementer, or verifier.
description: Option<String>Optional short description for config UIs and docs.
instructions: Option<String>Optional instruction overlay to apply when the role is later consumed.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FleetRole
impl<'de> Deserialize<'de> for FleetRole
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 FleetRole
impl StructuralPartialEq for FleetRole
Auto Trait Implementations§
impl Freeze for FleetRole
impl RefUnwindSafe for FleetRole
impl Send for FleetRole
impl Sync for FleetRole
impl Unpin for FleetRole
impl UnsafeUnpin for FleetRole
impl UnwindSafe for FleetRole
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
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.