pub struct InvokerDevice {
pub id: String,
pub name: String,
}Expand description
Another of its person’s devices that an agent works from: the device the MCP server that admitted the agent’s connection verified it came from, by the certificate the person’s root signed for it.
It says where the agent runs, and grants nothing: who the agent is and
what it may do is ActionInvoker::acting and the admission behind it.
Fields§
§id: StringThe device’s public key, in lowercase hex.
name: StringWhat the device’s certificate calls it (“Studio laptop”); empty when it gives the device no name.
Implementations§
Source§impl InvokerDevice
impl InvokerDevice
Sourcepub fn certified(key: [u8; 32], label: &str) -> Self
pub fn certified(key: [u8; 32], label: &str) -> Self
The device of the key key, called label by the certificate an API
verified for it.
Trait Implementations§
Source§impl Clone for InvokerDevice
impl Clone for InvokerDevice
Source§impl Debug for InvokerDevice
impl Debug for InvokerDevice
Source§impl<'de> Deserialize<'de> for InvokerDevice
impl<'de> Deserialize<'de> for InvokerDevice
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 InvokerDevice
Source§impl Hash for InvokerDevice
impl Hash for InvokerDevice
Source§impl PartialEq for InvokerDevice
impl PartialEq for InvokerDevice
Source§impl Serialize for InvokerDevice
impl Serialize for InvokerDevice
impl StructuralPartialEq for InvokerDevice
Auto Trait Implementations§
impl Forget for InvokerDevice
impl Freeze for InvokerDevice
impl Move for InvokerDevice
impl RefUnwindSafe for InvokerDevice
impl Send for InvokerDevice
impl Sync for InvokerDevice
impl Unpin for InvokerDevice
impl UnsafeUnpin for InvokerDevice
impl UnwindSafe for InvokerDevice
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more