pub struct Service { /* private fields */ }Implementations§
Source§impl Service
impl Service
pub fn from_ir(ty: ServiceIr, references: &BTreeMap<LexicalId, TypeId>) -> Self
pub fn schema(&self) -> &str
pub fn name(&self) -> &str
pub fn doc(&self) -> Option<&str>
pub fn uuid(&self) -> ServiceUuid
pub fn version(&self) -> u32
pub fn functions(&self) -> &BTreeMap<u32, Function>
pub fn events(&self) -> &BTreeMap<u32, Event>
pub fn function_fallback(&self) -> Option<&FunctionFallback>
pub fn event_fallback(&self) -> Option<&EventFallback>
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
Source§impl Deserialize<Service> for Service
impl Deserialize<Service> for Service
fn deserialize( deserializer: Deserializer<'_, '_>, ) -> Result<Self, DeserializeError>
Source§impl Serialize<Service> for &Service
impl Serialize<Service> for &Service
fn serialize(self, serializer: Serializer<'_>) -> Result<(), SerializeError>
fn serializes_as_some(&self) -> bool
Source§impl Serialize<Service> for Service
impl Serialize<Service> for Service
fn serialize(self, serializer: Serializer<'_>) -> Result<(), SerializeError>
fn serializes_as_some(&self) -> bool
impl Eq for Service
impl StructuralPartialEq for Service
impl Tag 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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)