pub struct SessionRpcVisibility<'a> { /* private fields */ }Expand description
session.visibility.* RPCs.
Implementations§
Source§impl<'a> SessionRpcVisibility<'a>
impl<'a> SessionRpcVisibility<'a>
Sourcepub async fn get(&self) -> Result<VisibilityGetResult, Error>
pub async fn get(&self) -> Result<VisibilityGetResult, Error>
Returns the session’s current Mission Control sharing status and shareable GitHub URL. Reflects whether the synced session is visible to repository readers (“repo”) or restricted to its creator and collaborators (“unshared”).
Wire method: session.visibility.get.
§Returns
Current sharing status and shareable GitHub URL for a session.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.
Sourcepub async fn set(
&self,
params: VisibilitySetRequest,
) -> Result<VisibilitySetResult, Error>
pub async fn set( &self, params: VisibilitySetRequest, ) -> Result<VisibilitySetResult, Error>
Sets the session’s Mission Control sharing status, controlling whether the synced session is visible to repository readers. Returns the effective status and shareable GitHub URL after the change.
Wire method: session.visibility.set.
§Parameters
params- Desired sharing status for the session.
§Returns
Effective sharing status and shareable GitHub URL after updating session visibility.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.
Trait Implementations§
Source§impl<'a> Clone for SessionRpcVisibility<'a>
impl<'a> Clone for SessionRpcVisibility<'a>
Source§fn clone(&self) -> SessionRpcVisibility<'a>
fn clone(&self) -> SessionRpcVisibility<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more