fn service(&self, bindings: &[Binding]) -> Result<String> {
        bindings
            .iter()
            .map(|Binding { id, typ }| match typ {
                IDLType::FuncT(func_t) => self.service_binding(id, func_t),
                _ => self.usage(typ),
            })
            .collect::<Result<Vec<String>>>()
            .map(|s| s.join("\n"))
    }
/// Function called when declaring the service (or actor) of a candid file. By default
/// returns the result of calling `service_binding` on all bindings, and returning a
/// string separated by `\n`.
Function called when declaring the service (or actor) of a candid file. By default
returns the result of calling `service_binding` on all bindings, and returning a
string separated by `\n`.
Function called when declaring the service ( or actor ) of a candid file . By default returns the result of calling ` service_binding ` on all bindings and returning a string separated by ` \ n ` .
fn service(&self, bindings: &[Binding]) -> Result<String> {
        bindings
            .iter()
            .map(|Binding { id, typ }| match typ {
                IDLType::FuncT(func_t) => self.service_binding(id, func_t),
                _ => self.usage(typ),
            })
            .collect::<Result<Vec<String>>>()
            .map(|s| s.join("\n"))
    }
fn service ( & self , bindings : & [ Binding ] ) -> Result < String > { bindings . iter ( ) . map ( | Binding { id , typ } | match typ { IDLType :: FuncT ( func_t ) => self . service_binding ( id , func_t ) , _ => self . usage ( typ ) , } ) . collect :: < Result < Vec < String > > > ( ) . map ( | s | s . join ( " \n " ) ) }
Function called when declaring the service (or actor) of a candid file.
Function called when declaring the service ( or actor ) of a candid file .
&self
bindings
&[Binding]
&self
bindings
&[Binding]