pub struct CreateThingRequest {
pub attribute_payload: Option<AttributePayload>,
pub billing_group_name: Option<String>,
pub thing_name: String,
pub thing_type_name: Option<String>,
}Expand description
The input for the CreateThing operation.
Fields§
§attribute_payload: Option<AttributePayload>The attribute payload, which consists of up to three name/value pairs in a JSON document. For example:
{\"attributes\":{\"string1\":\"string2\"}}
billing_group_name: Option<String>The name of the billing group the thing will be added to.
thing_name: StringThe name of the thing to create.
You can't change a thing's name after you create it. To change a thing's name, you must create a new thing, give it the new name, and then delete the old thing.
thing_type_name: Option<String>The name of the thing type associated with the new thing.
Trait Implementations§
Source§impl Clone for CreateThingRequest
impl Clone for CreateThingRequest
Source§fn clone(&self) -> CreateThingRequest
fn clone(&self) -> CreateThingRequest
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 CreateThingRequest
impl Debug for CreateThingRequest
Source§impl Default for CreateThingRequest
impl Default for CreateThingRequest
Source§fn default() -> CreateThingRequest
fn default() -> CreateThingRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for CreateThingRequest
impl PartialEq for CreateThingRequest
Source§impl Serialize for CreateThingRequest
impl Serialize for CreateThingRequest
impl StructuralPartialEq for CreateThingRequest
Auto Trait Implementations§
impl Freeze for CreateThingRequest
impl RefUnwindSafe for CreateThingRequest
impl Send for CreateThingRequest
impl Sync for CreateThingRequest
impl Unpin for CreateThingRequest
impl UnwindSafe for CreateThingRequest
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