pub struct ObjectInfoBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> ObjectInfoBuilder<S>
impl<S: State> ObjectInfoBuilder<S>
Sourcepub fn build(self) -> ObjectInfowhere
S: IsComplete,
pub fn build(self) -> ObjectInfowhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn name(self, value: String) -> ObjectInfoBuilder<SetName<S>>where
S::Name: IsUnset,
pub fn name(self, value: String) -> ObjectInfoBuilder<SetName<S>>where
S::Name: IsUnset,
Required.
Sourcepub fn location(self, value: Location) -> ObjectInfoBuilder<SetLocation<S>>where
S::Location: IsUnset,
pub fn location(self, value: Location) -> ObjectInfoBuilder<SetLocation<S>>where
S::Location: IsUnset,
Sourcepub fn maybe_location(
self,
value: Option<Location>,
) -> ObjectInfoBuilder<SetLocation<S>>where
S::Location: IsUnset,
pub fn maybe_location(
self,
value: Option<Location>,
) -> ObjectInfoBuilder<SetLocation<S>>where
S::Location: IsUnset,
Sourcepub fn device_group(self, value: String) -> ObjectInfoBuilder<SetDeviceGroup<S>>where
S::DeviceGroup: IsUnset,
pub fn device_group(self, value: String) -> ObjectInfoBuilder<SetDeviceGroup<S>>where
S::DeviceGroup: IsUnset,
Sourcepub fn maybe_device_group(
self,
value: Option<String>,
) -> ObjectInfoBuilder<SetDeviceGroup<S>>where
S::DeviceGroup: IsUnset,
pub fn maybe_device_group(
self,
value: Option<String>,
) -> ObjectInfoBuilder<SetDeviceGroup<S>>where
S::DeviceGroup: IsUnset,
Sourcepub fn disable_override(
self,
value: YesNo,
) -> ObjectInfoBuilder<SetDisableOverride<S>>where
S::DisableOverride: IsUnset,
pub fn disable_override(
self,
value: YesNo,
) -> ObjectInfoBuilder<SetDisableOverride<S>>where
S::DisableOverride: IsUnset,
Sourcepub fn maybe_disable_override(
self,
value: Option<YesNo>,
) -> ObjectInfoBuilder<SetDisableOverride<S>>where
S::DisableOverride: IsUnset,
pub fn maybe_disable_override(
self,
value: Option<YesNo>,
) -> ObjectInfoBuilder<SetDisableOverride<S>>where
S::DisableOverride: IsUnset,
Sourcepub fn description(self, value: String) -> ObjectInfoBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn description(self, value: String) -> ObjectInfoBuilder<SetDescription<S>>where
S::Description: IsUnset,
Sourcepub fn maybe_description(
self,
value: Option<String>,
) -> ObjectInfoBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn maybe_description(
self,
value: Option<String>,
) -> ObjectInfoBuilder<SetDescription<S>>where
S::Description: IsUnset,
Sourcepub fn tag(self, value: Vec<String>) -> ObjectInfoBuilder<SetTag<S>>where
S::Tag: IsUnset,
pub fn tag(self, value: Vec<String>) -> ObjectInfoBuilder<SetTag<S>>where
S::Tag: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for ObjectInfoBuilder<S>
impl<S> RefUnwindSafe for ObjectInfoBuilder<S>
impl<S> Send for ObjectInfoBuilder<S>
impl<S> Sync for ObjectInfoBuilder<S>
impl<S> Unpin for ObjectInfoBuilder<S>
impl<S> UnwindSafe for ObjectInfoBuilder<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