#[non_exhaustive]pub struct Node {
pub node_id: String,
pub zone: String,
pub state: State,
pub host: String,
pub port: i32,
pub parameters: Option<MemcacheParameters>,
/* private fields */
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.node_id: StringOutput only. Identifier of the Memcached node. The node id does not include project or location like the Memcached instance name.
zone: StringOutput only. Location (GCP Zone) for the Memcached node.
state: StateOutput only. Current state of the Memcached node.
host: StringOutput only. Hostname or IP address of the Memcached node used by the clients to connect to the Memcached server on this node.
port: i32Output only. The port number of the Memcached server on this node.
parameters: Option<MemcacheParameters>User defined parameters currently applied to the node.
Implementations§
Source§impl Node
impl Node
pub fn new() -> Self
Sourcepub fn set_node_id<T: Into<String>>(self, v: T) -> Self
pub fn set_node_id<T: Into<String>>(self, v: T) -> Self
Sets the value of node_id.
Sourcepub fn set_parameters<T>(self, v: T) -> Selfwhere
T: Into<MemcacheParameters>,
pub fn set_parameters<T>(self, v: T) -> Selfwhere
T: Into<MemcacheParameters>,
Sets the value of parameters.
Sourcepub fn set_or_clear_parameters<T>(self, v: Option<T>) -> Selfwhere
T: Into<MemcacheParameters>,
pub fn set_or_clear_parameters<T>(self, v: Option<T>) -> Selfwhere
T: Into<MemcacheParameters>,
Sets or clears the value of parameters.
Trait Implementations§
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
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