pub enum StdinSource {
Data(Vec<u8>),
FileReference {
tracked_file_id: String,
original_path: String,
security_bookmark: Vec<u8>,
media_urn: String,
},
}Expand description
Source for stdin data - either raw bytes or a file reference.
For plugins (via gRPC/XPC), using FileReference avoids the 4MB gRPC limit by letting the Swift/XPC side read the file locally instead of sending bytes over the wire.
Variants§
Data(Vec<u8>)
Raw byte data - used for providers (in-process) or small inline data
FileReference
File reference - used for plugins to read files locally on Mac side
Trait Implementations§
Source§impl Clone for StdinSource
impl Clone for StdinSource
Source§fn clone(&self) -> StdinSource
fn clone(&self) -> StdinSource
Returns a duplicate of the value. Read more
1.0.0 · 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 StdinSource
impl RefUnwindSafe for StdinSource
impl Send for StdinSource
impl Sync for StdinSource
impl Unpin for StdinSource
impl UnwindSafe for StdinSource
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