pub struct TagMetadata {
pub data_type: u16,
pub size: u32,
pub is_array: bool,
pub dimensions: Vec<u32>,
pub permissions: TagPermissions,
pub scope: TagScope,
pub last_access: Instant,
pub array_info: Option<ArrayInfo>,
pub last_updated: Instant,
}
Expand description
Metadata for a PLC tag
Fields§
§data_type: u16
The data type of the tag
size: u32
Size of the tag in bytes
is_array: bool
Whether the tag is an array
dimensions: Vec<u32>
Array dimensions if applicable
permissions: TagPermissions
Access permissions for the tag
scope: TagScope
Scope of the tag
last_access: Instant
Last time this tag was accessed
array_info: Option<ArrayInfo>
§last_updated: Instant
Trait Implementations§
Source§impl Clone for TagMetadata
impl Clone for TagMetadata
Source§fn clone(&self) -> TagMetadata
fn clone(&self) -> TagMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for TagMetadata
impl RefUnwindSafe for TagMetadata
impl Send for TagMetadata
impl Sync for TagMetadata
impl Unpin for TagMetadata
impl UnwindSafe for TagMetadata
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