fn clone()

in dubbo-build/src/prost.rs [357:374]


    fn clone(&self) -> Self {
        DubboMethod::new(Method {
            name: self.inner.name.clone(),
            proto_name: self.inner.proto_name.clone(),
            comments: prost_build::Comments {
                leading_detached: self.inner.comments.leading_detached.clone(),
                leading: self.inner.comments.leading.clone(),
                trailing: self.inner.comments.trailing.clone(),
            },
            input_type: self.inner.input_type.clone(),
            output_type: self.inner.output_type.clone(),
            input_proto_type: self.inner.input_proto_type.clone(),
            output_proto_type: self.inner.output_proto_type.clone(),
            options: self.inner.options.clone(),
            client_streaming: self.inner.client_streaming,
            server_streaming: self.inner.server_streaming,
        })
    }