#[non_exhaustive]pub struct CallContext {
pub session_id: String,
pub identity: Identity,
pub permissions: Permissions,
}Expand description
Tool 호출 시 plugin handler에 전달되는 컨텍스트.
session_id는 transport가 발급 (stdio: UUID v4, HTTP: Mcp-Session-Id).
permissions는 caller에게 부여된 권한 비트 — S2는 stdio=ADMIN, HTTP=READ
hard-code, S3에서 ApiKey-derived로 교체.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.session_id: String§identity: Identity§permissions: PermissionsImplementations§
Source§impl CallContext
impl CallContext
pub fn new( session_id: String, identity: Identity, permissions: Permissions, ) -> Self
Trait Implementations§
Source§impl Clone for CallContext
impl Clone for CallContext
Source§fn clone(&self) -> CallContext
fn clone(&self) -> CallContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CallContext
impl RefUnwindSafe for CallContext
impl Send for CallContext
impl Sync for CallContext
impl Unpin for CallContext
impl UnsafeUnpin for CallContext
impl UnwindSafe for CallContext
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