pub struct Service<'a> {
pub db: Option<Db<'a>>,
pub permissions: Vec<CowStr<'a>>,
pub extra_data: BTreeMap<SmolStr, Data<'a>>,
}Expand description
The definitions for the plugin.
Fields§
§db: Option<Db<'a>>§permissions: Vec<CowStr<'a>>Additional metadata for the plugin, including Expo client and Go configurations.
extra_data: BTreeMap<SmolStr, Data<'a>>Trait Implementations§
Source§impl Collection for Service<'_>
impl Collection for Service<'_>
Source§const NSID: &'static str = "app.ocho.plugin.service"
const NSID: &'static str = "app.ocho.plugin.service"
The NSID for the Lexicon that defines the schema of records in this collection.
Source§type Record = ServiceRecord
type Record = ServiceRecord
A marker type implementing
XrpcResp that allows typed deserialization of records
from this collection. Used by [Agent::get_record] to return properly typed responses.Source§impl<'de: 'a, 'a> Deserialize<'de> for Service<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Service<'a>
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
Source§impl From<ServiceGetRecordOutput<'_>> for Service<'_>
impl From<ServiceGetRecordOutput<'_>> for Service<'_>
Source§fn from(output: ServiceGetRecordOutput<'_>) -> Self
fn from(output: ServiceGetRecordOutput<'_>) -> Self
Converts to this type from the input type.
Source§impl<'a> IntoStatic for Service<'a>
impl<'a> IntoStatic for Service<'a>
impl<'a> Eq for Service<'a>
impl<'a> StructuralPartialEq for Service<'a>
Auto Trait Implementations§
impl<'a> Freeze for Service<'a>
impl<'a> RefUnwindSafe for Service<'a>
impl<'a> Send for Service<'a>
impl<'a> Sync for Service<'a>
impl<'a> Unpin for Service<'a>
impl<'a> UnwindSafe for Service<'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§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.