Struct wasmer_deploy_schema::instance::InstanceMeta
source · pub struct InstanceMeta {
pub token: DeployWorkloadToken,
pub id: InstanceId,
pub agent_id: String,
}
Expand description
Metadata for a running instance.
Fields§
§token: DeployWorkloadToken
Token used to create the instance.
Allows associating the instance with an agent.
id: InstanceId
Unique, randomly generated UUID for the instance.
agent_id: String
Id for the agent that authorized a workload.
Usually a user id from the backend.
Implementations§
source§impl InstanceMeta
impl InstanceMeta
pub fn new_for_token(token: DeployWorkloadToken) -> Self
Trait Implementations§
source§impl Clone for InstanceMeta
impl Clone for InstanceMeta
source§fn clone(&self) -> InstanceMeta
fn clone(&self) -> InstanceMeta
Returns a copy 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 InstanceMeta
impl Debug for InstanceMeta
Auto Trait Implementations§
impl RefUnwindSafe for InstanceMeta
impl Send for InstanceMeta
impl Sync for InstanceMeta
impl Unpin for InstanceMeta
impl UnwindSafe for InstanceMeta
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