---
title: "Comment by Jason Cheng on \"Design Patterns in Rust 🦀: An Introduction to the Builder Pattern\" | Hashnode"
description: "Why not just have methods to set auto_upgrade and node_pool in KubernetesCluster itself? Is it because we want to keep those fields immutable?"
url: "https://hashnode.com/posts/design-patterns-in-rust-an-introduction-to-the-builder-pattern/63d566939de8ed71de21868a/comment/63d6bce4d6ba08377e9495b8"
---

[Discussion](https://hashnode.com/posts/design-patterns-in-rust-an-introduction-to-the-builder-pattern/63d566939de8ed71de21868a)

Comment [Design Patterns in Rust 🦀: An Introduction to the Builder Pattern](https://hashnode.com/posts/design-patterns-in-rust-an-introduction-to-the-builder-pattern/63d566939de8ed71de21868a)

[Jason Cheng](https://hashnode.com/@tumtumtree)

[Jan 29, 2023](https://hashnode.com/posts/design-patterns-in-rust-an-introduction-to-the-builder-pattern/63d566939de8ed71de21868a/comment/63d6bce4d6ba08377e9495b8)

Why not just have methods to set auto\_upgrade and node\_pool in KubernetesCluster itself? Is it because we want to keep those fields immutable?

[Engin Diri](https://hashnode.com/@ediri)

[Jan 30, 2023](https://hashnode.com/posts/design-patterns-in-rust-an-introduction-to-the-builder-pattern/63d566939de8ed71de21868a/comment/63d6bce4d6ba08377e9495b8#reply-63d77aebe7c69a3e5b2dc0b2)

No, it's not about immutable fields.

It's all about the way to control the creation process of complex objects with a step by step approach + you isolate the complex construction code from the business logic of the product.

But then, nothing wrong to not(!) us a pattern. If you think your code may not benefit from using a pattern then don't use it.
