pub struct MachineSelfResponseBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> MachineSelfResponseBuilder<S>
impl<S: State> MachineSelfResponseBuilder<S>
Sourcepub fn build(self) -> MachineSelfResponsewhere
S: IsComplete,
pub fn build(self) -> MachineSelfResponsewhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn applications(
self,
value: Vec<ApplicationType>,
) -> MachineSelfResponseBuilder<SetApplications<S>>where
S::Applications: IsUnset,
pub fn applications(
self,
value: Vec<ApplicationType>,
) -> MachineSelfResponseBuilder<SetApplications<S>>where
S::Applications: IsUnset,
Required.
The types of application Canopy currently holds for that machine. Empty for a box that has enrolled but not yet reported what runs on it, which is awaiting a report rather than an error.
A workload is named by its type, which is what the reporter itself said it was. Canopy’s own identifier for an application is internal and never on the wire.
Sourcepub fn device_id(
self,
value: Uuid,
) -> MachineSelfResponseBuilder<SetDeviceId<S>>where
S::DeviceId: IsUnset,
pub fn device_id(
self,
value: Uuid,
) -> MachineSelfResponseBuilder<SetDeviceId<S>>where
S::DeviceId: IsUnset,
Required.
The calling identity’s own identifier.
Sourcepub fn machine_id(
self,
value: Uuid,
) -> MachineSelfResponseBuilder<SetMachineId<S>>where
S::MachineId: IsUnset,
pub fn machine_id(
self,
value: Uuid,
) -> MachineSelfResponseBuilder<SetMachineId<S>>where
S::MachineId: IsUnset,
Required.
The machine this identity is enrolled as.
Auto Trait Implementations§
impl<S> Freeze for MachineSelfResponseBuilder<S>
impl<S> RefUnwindSafe for MachineSelfResponseBuilder<S>
impl<S> Send for MachineSelfResponseBuilder<S>
impl<S> Sync for MachineSelfResponseBuilder<S>
impl<S> Unpin for MachineSelfResponseBuilder<S>
impl<S> UnsafeUnpin for MachineSelfResponseBuilder<S>
impl<S> UnwindSafe for MachineSelfResponseBuilder<S>
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