pub struct ModbusProtocolUpdate {
pub base: Option<ProtocolUpdate>,
pub server_id: Option<Int64>,
pub maximum_connected_clients: Option<Int64>,
pub read_only: Option<Boolean>,
pub restrict_access_to_allowed_clients: Option<Boolean>,
pub allowed_clients: Option<Vec<String>>,
}Expand description
Update struct corresponding to ModbusProtocol
Fields§
§base: Option<ProtocolUpdate>§server_id: Option<Int64>§maximum_connected_clients: Option<Int64>§read_only: Option<Boolean>§restrict_access_to_allowed_clients: Option<Boolean>§allowed_clients: Option<Vec<String>>Implementations§
Source§impl ModbusProtocolUpdate
impl ModbusProtocolUpdate
pub fn builder() -> Self
pub const fn build(self) -> Self
pub fn with_base(self, v: ProtocolUpdate) -> Self
pub fn with_server_id(self, v: Int64) -> Self
pub fn with_maximum_connected_clients(self, v: Int64) -> Self
pub fn with_read_only(self, v: Boolean) -> Self
pub fn with_restrict_access_to_allowed_clients(self, v: Boolean) -> Self
pub fn with_allowed_clients(self, v: Vec<String>) -> Self
Trait Implementations§
Source§impl Debug for ModbusProtocolUpdate
impl Debug for ModbusProtocolUpdate
Source§impl Default for ModbusProtocolUpdate
impl Default for ModbusProtocolUpdate
Source§fn default() -> ModbusProtocolUpdate
fn default() -> ModbusProtocolUpdate
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ModbusProtocolUpdate
impl RefUnwindSafe for ModbusProtocolUpdate
impl Send for ModbusProtocolUpdate
impl Sync for ModbusProtocolUpdate
impl Unpin for ModbusProtocolUpdate
impl UnsafeUnpin for ModbusProtocolUpdate
impl UnwindSafe for ModbusProtocolUpdate
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