pub struct DevicesInput {
pub relay: String,
pub token: Option<String>,
}Expand description
Input for the devices MCP tool: which devices are connected to a relay.
Fields§
§relay: StringRelay hub to query (host:port).
token: Option<String>Shared relay token (else the OMNI_RELAY_TOKEN env var).
Trait Implementations§
Source§impl Clone for DevicesInput
impl Clone for DevicesInput
Source§fn clone(&self) -> DevicesInput
fn clone(&self) -> DevicesInput
Returns a duplicate of the value. Read more
1.0.0 · 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 DevicesInput
impl Debug for DevicesInput
Source§impl Default for DevicesInput
impl Default for DevicesInput
Source§fn default() -> DevicesInput
fn default() -> DevicesInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DevicesInput
impl<'de> Deserialize<'de> for DevicesInput
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 DevicesInput
impl JsonSchema for DevicesInput
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 DevicesInput
impl RefUnwindSafe for DevicesInput
impl Send for DevicesInput
impl Sync for DevicesInput
impl Unpin for DevicesInput
impl UnsafeUnpin for DevicesInput
impl UnwindSafe for DevicesInput
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