pub struct Service {
pub key_equivalent: Option<DefaultDictionary>,
pub menu_item: DefaultDictionary,
pub message: String,
pub port_name: Option<String>,
pub return_types: Option<Vec<String>>,
pub send_types: Option<Vec<String>>,
pub timeout: Option<String>,
pub user_data: Option<BTreeMap<String, String>>,
}Expand description
Service
Fields§
§key_equivalent: Option<DefaultDictionary>A keyboard shortcut that invokes the service menu command.
§Availability
- macOS 10.0+
§Framework
- AppKit
message: String§port_name: Option<String>The port that the service monitors for incoming requests.
§Availability
- macOS 10.0+
§Framework
- AppKit
return_types: Option<Vec<String>>§send_types: Option<Vec<String>>§timeout: Option<String>The amount of time, in milliseconds, that the system waits for a response from the service.
§Availability
- macOS 10.0+
§Framework
- AppKit
user_data: Option<BTreeMap<String, String>>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Service
impl<'de> Deserialize<'de> for Service
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Service
impl StructuralPartialEq for Service
Auto Trait Implementations§
impl Freeze for Service
impl RefUnwindSafe for Service
impl Send for Service
impl Sync for Service
impl Unpin for Service
impl UnwindSafe for Service
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§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.