pub struct CopyApplied {
pub sensitive: bool,
pub expires: CopyExpiry,
pub local_only: bool,
}Expand description
What a clipboard_with shell applied to a copy it made (ADR-0053), read from an ok: true reply with
CopyApplied::from_response.
Fields§
§sensitive: boolA sensitive marker was attached to the copy. Whether anything honours it depends on who reads the clipboard:
on Android the IS_SENSITIVE extra hides the preview on 13+ and asks keyboards not to keep it (some honour
it); on iOS org.nspasteboard.ConcealedType is honoured only by some Mac clipboard managers, and only if the
copy reaches a Mac (local_only off). Never on the web. It is not proof that the text is hidden.
expires: CopyExpiryWho removes the copy when its time is up: who would, not when. A huge expires_after is reported like any other.
local_only: boolThe platform keeps the copy off the user’s other devices (iOS .localOnly). Never on Android or the web.
Implementations§
Source§impl CopyApplied
impl CopyApplied
Sourcepub fn from_response(resp: &PluginResponse) -> Option<Self>
pub fn from_response(resp: &PluginResponse) -> Option<Self>
The report in an ok: true reply, or None when there is none to trust: the copy failed, the output is
empty (a shell from CLI 0.68 reports nothing), it doesn’t parse, or it names an expiry this core doesn’t know.
None means unknown: an app that needs a protected copy treats it as not protected.