pub struct Accepted {
pub api: u32,
pub session: String,
pub ctx: Context,
pub granted: Vec<String>,
pub denied: Vec<(String, String)>,
pub shm: Option<ShmSpec>,
pub mcp: Option<McpGrant>,
pub restore: Option<Vec<u8>>,
pub features: Vec<String>,
}Expand description
What Mouser tells an accepted plugin.
Fields§
§api: u32§session: String§ctx: Context§granted: Vec<String>Permissions granted (manifest, pre-grant or the user).
denied: Vec<(String, String)>Listeners refused, with the reason (not fatal).
shm: Option<ShmSpec>None: send images inline.
mcp: Option<McpGrant>§restore: Option<Vec<u8>>Last Out::StateSave blob when restarted after a crash.
features: Vec<String>What this Mouser offers beyond the base protocol
(crate::hosted::FEATURE_VIEWS, crate::hosted::FEATURE_MEDIA).
Empty from a Mouser older than 1.6 (mode-api 0.4).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Accepted
impl<'de> Deserialize<'de> for Accepted
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 StructuralPartialEq for Accepted
Auto Trait Implementations§
impl Forget for Accepted
impl Freeze for Accepted
impl RefUnwindSafe for Accepted
impl Send for Accepted
impl Sync for Accepted
impl Unpin for Accepted
impl UnsafeUnpin for Accepted
impl UnwindSafe for Accepted
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