pub struct ContainerBinding {
pub environment: RuntimeEnvironment,
pub id_source: Option<InstanceIdSource>,
pub instance_id_hash: Option<String>,
}Expand description
Container-aware license binding
Fields§
§environment: RuntimeEnvironmentThe detected environment
id_source: Option<InstanceIdSource>The instance ID source used
instance_id_hash: Option<String>The bound instance ID (hashed)
Implementations§
Source§impl ContainerBinding
impl ContainerBinding
Sourcepub fn matches_current(&self) -> bool
pub fn matches_current(&self) -> bool
Check if the current environment matches this binding
Sourcepub fn should_use_hardware_binding(&self) -> bool
pub fn should_use_hardware_binding(&self) -> bool
Check if hardware binding should be used instead
Trait Implementations§
Source§impl Clone for ContainerBinding
impl Clone for ContainerBinding
Source§fn clone(&self) -> ContainerBinding
fn clone(&self) -> ContainerBinding
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 moreSource§impl Debug for ContainerBinding
impl Debug for ContainerBinding
Source§impl<'de> Deserialize<'de> for ContainerBinding
impl<'de> Deserialize<'de> for ContainerBinding
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ContainerBinding
impl RefUnwindSafe for ContainerBinding
impl Send for ContainerBinding
impl Sync for ContainerBinding
impl Unpin for ContainerBinding
impl UnsafeUnpin for ContainerBinding
impl UnwindSafe for ContainerBinding
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