pub struct Feature {
pub create_time: Option<DateTime<Utc>>,
pub delete_time: Option<DateTime<Utc>>,
pub labels: Option<HashMap<String, String>>,
pub membership_specs: Option<HashMap<String, MembershipFeatureSpec>>,
pub membership_states: Option<HashMap<String, MembershipFeatureState>>,
pub name: Option<String>,
pub resource_state: Option<FeatureResourceState>,
pub scope_specs: Option<HashMap<String, ScopeFeatureSpec>>,
pub scope_states: Option<HashMap<String, ScopeFeatureState>>,
pub spec: Option<CommonFeatureSpec>,
pub state: Option<CommonFeatureState>,
pub update_time: Option<DateTime<Utc>>,
}Expand description
Feature represents the settings and status of any Hub Feature.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- locations features create projects (request)
- locations features get projects (response)
- locations features patch projects (request)
Fields§
§create_time: Option<DateTime<Utc>>Output only. When the Feature resource was created.
delete_time: Option<DateTime<Utc>>Output only. When the Feature resource was deleted.
labels: Option<HashMap<String, String>>GCP labels for this Feature.
membership_specs: Option<HashMap<String, MembershipFeatureSpec>>Optional. Membership-specific configuration for this Feature. If this Feature does not support any per-Membership configuration, this field may be unused. The keys indicate which Membership the configuration is for, in the form: projects/{p}/locations/{l}/memberships/{m} Where {p} is the project, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} WILL match the Feature’s project. {p} will always be returned as the project number, but the project ID is also accepted during input. If the same Membership is specified in the map twice (using the project ID form, and the project number form), exactly ONE of the entries will be saved, with no guarantees as to which. For this reason, it is recommended the same format be used for all entries when mutating a Feature.
membership_states: Option<HashMap<String, MembershipFeatureState>>Output only. Membership-specific Feature status. If this Feature does report any per-Membership status, this field may be unused. The keys indicate which Membership the state is for, in the form: projects/{p}/locations/{l}/memberships/{m} Where {p} is the project number, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} MUST match the Feature’s project number.
name: Option<String>Output only. The full, unique name of this Feature resource in the format projects/*/locations/*/features/*.
resource_state: Option<FeatureResourceState>Output only. State of the Feature resource itself.
scope_specs: Option<HashMap<String, ScopeFeatureSpec>>Optional. Scope-specific configuration for this Feature. If this Feature does not support any per-Scope configuration, this field may be unused. The keys indicate which Scope the configuration is for, in the form: projects/{p}/locations/global/scopes/{s} Where {p} is the project, {s} is a valid Scope in this project. {p} WILL match the Feature’s project. {p} will always be returned as the project number, but the project ID is also accepted during input. If the same Scope is specified in the map twice (using the project ID form, and the project number form), exactly ONE of the entries will be saved, with no guarantees as to which. For this reason, it is recommended the same format be used for all entries when mutating a Feature.
scope_states: Option<HashMap<String, ScopeFeatureState>>Output only. Scope-specific Feature status. If this Feature does report any per-Scope status, this field may be unused. The keys indicate which Scope the state is for, in the form: projects/{p}/locations/global/scopes/{s} Where {p} is the project, {s} is a valid Scope in this project. {p} WILL match the Feature’s project.
spec: Option<CommonFeatureSpec>Optional. Hub-wide Feature configuration. If this Feature does not support any Hub-wide configuration, this field may be unused.
state: Option<CommonFeatureState>Output only. The Hub-wide Feature state.
update_time: Option<DateTime<Utc>>Output only. When the Feature resource was last updated.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Feature
impl<'de> Deserialize<'de> for Feature
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>,
impl RequestValue for Feature
impl ResponseResult for Feature
Auto Trait Implementations§
impl Freeze for Feature
impl RefUnwindSafe for Feature
impl Send for Feature
impl Sync for Feature
impl Unpin for Feature
impl UnwindSafe for Feature
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more