pub struct CreateFacetRequest {
pub attributes: Option<Vec<FacetAttribute>>,
pub facet_style: Option<String>,
pub name: String,
pub object_type: Option<String>,
pub schema_arn: String,
}Fields§
§attributes: Option<Vec<FacetAttribute>>The attributes that are associated with the Facet.
facet_style: Option<String>There are two different styles that you can define on any given facet, Static and Dynamic. For static facets, all attributes must be defined in the schema. For dynamic facets, attributes can be defined during data plane operations.
name: StringThe name of the Facet, which is unique for a given schema.
object_type: Option<String>Specifies whether a given object created from this facet is of type node, leaf node, policy or index.
-
Node: Can have multiple children but one parent.
-
Leaf node: Cannot have children but can have multiple parents.
-
Policy: Allows you to store a policy document and policy type. For more information, see Policies.
-
Index: Can be created with the Index API.
schema_arn: StringTrait Implementations§
Source§impl Clone for CreateFacetRequest
impl Clone for CreateFacetRequest
Source§fn clone(&self) -> CreateFacetRequest
fn clone(&self) -> CreateFacetRequest
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 CreateFacetRequest
impl Debug for CreateFacetRequest
Source§impl Default for CreateFacetRequest
impl Default for CreateFacetRequest
Source§fn default() -> CreateFacetRequest
fn default() -> CreateFacetRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for CreateFacetRequest
impl PartialEq for CreateFacetRequest
Source§impl Serialize for CreateFacetRequest
impl Serialize for CreateFacetRequest
impl StructuralPartialEq for CreateFacetRequest
Auto Trait Implementations§
impl Freeze for CreateFacetRequest
impl RefUnwindSafe for CreateFacetRequest
impl Send for CreateFacetRequest
impl Sync for CreateFacetRequest
impl Unpin for CreateFacetRequest
impl UnwindSafe for CreateFacetRequest
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