#[non_exhaustive]pub struct DatasetResponse {
pub attributes: Option<DatasetAttributesResponse>,
pub id: Option<String>,
pub type_: Option<String>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Datasets Object Constraints
-
Tag Limit per Dataset:
- Each restricted dataset supports a maximum of 10 key:value pairs per product.
-
Tag Key Rules per Telemetry Type:
- Only one tag key or attribute may be used to define access within a single telemetry type.
- The same or different tag key may be used across different telemetry types.
-
Tag Value Uniqueness:
- Tag values must be unique within a single dataset.
- A tag value used in one dataset cannot be reused in another dataset of the same telemetry type.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.attributes: Option<DatasetAttributesResponse>
Dataset metadata and configuration(s).
id: Option<String>
Unique identifier for the dataset.
type_: Option<String>
Resource type, always “dataset”.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl DatasetResponse
impl DatasetResponse
pub fn new() -> DatasetResponse
pub fn attributes(self, value: DatasetAttributesResponse) -> Self
pub fn id(self, value: String) -> Self
pub fn type_(self, value: String) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for DatasetResponse
impl Clone for DatasetResponse
Source§fn clone(&self) -> DatasetResponse
fn clone(&self) -> DatasetResponse
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 DatasetResponse
impl Debug for DatasetResponse
Source§impl Default for DatasetResponse
impl Default for DatasetResponse
Source§impl<'de> Deserialize<'de> for DatasetResponse
impl<'de> Deserialize<'de> for DatasetResponse
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DatasetResponse
impl PartialEq for DatasetResponse
Source§impl Serialize for DatasetResponse
impl Serialize for DatasetResponse
impl StructuralPartialEq for DatasetResponse
Auto Trait Implementations§
impl Freeze for DatasetResponse
impl RefUnwindSafe for DatasetResponse
impl Send for DatasetResponse
impl Sync for DatasetResponse
impl Unpin for DatasetResponse
impl UnwindSafe for DatasetResponse
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