pub struct OfferedGrant {
pub id: String,
pub class: String,
pub object: String,
}Expand description
A grant an autopilot run may hold, offered on the approve sheet: one object-bound grant a person decided earlier for this feature.
Fields§
§id: StringIts grant id: what --grant and the sheet’s tick name.
class: Stringwrite, command, network or mcp.
object: StringThe object in full (run: cargo run --example demo · argv #3f…).
Trait Implementations§
Source§impl Clone for OfferedGrant
impl Clone for OfferedGrant
Source§impl Debug for OfferedGrant
impl Debug for OfferedGrant
Source§impl<'de> Deserialize<'de> for OfferedGrant
impl<'de> Deserialize<'de> for OfferedGrant
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 OfferedGrant
Source§impl JsonSchema for OfferedGrant
impl JsonSchema for OfferedGrant
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 moreSource§impl PartialEq for OfferedGrant
impl PartialEq for OfferedGrant
Source§impl Serialize for OfferedGrant
impl Serialize for OfferedGrant
impl StructuralPartialEq for OfferedGrant
Auto Trait Implementations§
impl Freeze for OfferedGrant
impl RefUnwindSafe for OfferedGrant
impl Send for OfferedGrant
impl Sync for OfferedGrant
impl Unpin for OfferedGrant
impl UnsafeUnpin for OfferedGrant
impl UnwindSafe for OfferedGrant
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