pub struct ReadOptions<'a> {
pub id: &'a str,
pub password: Option<&'a str>,
pub name: Option<&'a str>,
pub primary: bool,
}Expand description
Shared options for 5522 read requests.
Fields§
§id: &'a strCaller-chosen correlation id; sanitized by sanitize_request_id.
password: Option<&'a str>Session password that lets the terminal pre-authorize future reads.
Only sent together with ReadOptions::name.
name: Option<&'a str>Human-friendly client name shown in terminal permission prompts.
primary: boolRead from the primary selection instead of the clipboard.
Trait Implementations§
Source§impl<'a> Clone for ReadOptions<'a>
impl<'a> Clone for ReadOptions<'a>
impl<'a> Copy for ReadOptions<'a>
Source§impl<'a> Debug for ReadOptions<'a>
impl<'a> Debug for ReadOptions<'a>
impl<'a> Eq for ReadOptions<'a>
Source§impl<'a> PartialEq for ReadOptions<'a>
impl<'a> PartialEq for ReadOptions<'a>
impl<'a> StructuralPartialEq for ReadOptions<'a>
Auto Trait Implementations§
impl<'a> Forget for ReadOptions<'a>
impl<'a> Freeze for ReadOptions<'a>
impl<'a> Move for ReadOptions<'a>
impl<'a> RefUnwindSafe for ReadOptions<'a>
impl<'a> Send for ReadOptions<'a>
impl<'a> Sync for ReadOptions<'a>
impl<'a> Unpin for ReadOptions<'a>
impl<'a> UnsafeUnpin for ReadOptions<'a>
impl<'a> UnwindSafe for ReadOptions<'a>
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.