pub struct ServiceDef {
pub package: String,
pub service_name: String,
pub methods: Vec<MethodDef>,
}Expand description
Service definition parsed from proto
Fields§
§package: String§service_name: String§methods: Vec<MethodDef>Implementations§
Source§impl ServiceDef
impl ServiceDef
Sourcepub fn module_path(&self) -> String
pub fn module_path(&self) -> String
Get the Rust module path (package parts as snake_case)
Sourcepub fn interface_id_expr(&self) -> TokenStream
pub fn interface_id_expr(&self) -> TokenStream
Get interface ID calculation
Trait Implementations§
Source§impl Clone for ServiceDef
impl Clone for ServiceDef
Source§fn clone(&self) -> ServiceDef
fn clone(&self) -> ServiceDef
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 ServiceDef
impl RefUnwindSafe for ServiceDef
impl Send for ServiceDef
impl Sync for ServiceDef
impl Unpin for ServiceDef
impl UnsafeUnpin for ServiceDef
impl UnwindSafe for ServiceDef
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