pub struct CreateResourceGroup {
pub name: Ident,
pub type_equals: bool,
pub group_type: ResourceGroupType,
pub vcpu: Option<ResourceGroupVcpu>,
pub thread_priority: Option<ResourceGroupThreadPriority>,
pub state: Option<ResourceGroupState>,
pub meta: Meta,
}Expand description
A MySQL CREATE RESOURCE GROUP <name> TYPE [=] {SYSTEM | USER} [VCPU …] [THREAD_PRIORITY …] [ENABLE | DISABLE] resource-group definition (sql_yacc.yy create_resource_group_stmt),
gated by StatementDdlGates::resource_group.
TYPE is mandatory (a bare CREATE RESOURCE GROUP g is ER_PARSE_ERROR on mysql:8.4.10) and
the option train is fixed-order — VCPU, then THREAD_PRIORITY, then ENABLE/DISABLE; any
permutation (… ENABLE VCPU …) is ER_PARSE_ERROR. CREATE admits no FORCE (ENABLE FORCE
is ER_PARSE_ERROR), unlike AlterResourceGroup and DropResourceGroup, which share the
same resource_group gate.
Fields§
§name: IdentThe resource-group name (ident).
type_equals: boolWhether the TYPE = spelling (vs bare TYPE) was written (opt_equal).
group_type: ResourceGroupTypeThe group type (SYSTEM/USER), mandatory.
vcpu: Option<ResourceGroupVcpu>The optional VCPU [=] <ranges> CPU-affinity clause.
thread_priority: Option<ResourceGroupThreadPriority>The optional THREAD_PRIORITY [=] <n> clause.
state: Option<ResourceGroupState>The optional ENABLE/DISABLE state clause.
meta: MetaSource location and node identity.
Trait Implementations§
Source§impl Clone for CreateResourceGroup
impl Clone for CreateResourceGroup
Source§fn clone(&self) -> CreateResourceGroup
fn clone(&self) -> CreateResourceGroup
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CreateResourceGroup
impl Debug for CreateResourceGroup
Source§impl<'de> Deserialize<'de> for CreateResourceGroup
impl<'de> Deserialize<'de> for CreateResourceGroup
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 Eq for CreateResourceGroup
Source§impl Hash for CreateResourceGroup
impl Hash for CreateResourceGroup
Source§impl PartialEq for CreateResourceGroup
impl PartialEq for CreateResourceGroup
Source§impl Render for CreateResourceGroup
impl Render for CreateResourceGroup
Source§fn render(&self, ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
fn render(&self, ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
Source§fn operand_binding_power(&self) -> Option<BindingPower>
fn operand_binding_power(&self) -> Option<BindingPower>
None (the default) for a self-delimiting node — an atom, call, or
constructor — that never needs parentheses. Read moreSource§impl Serialize for CreateResourceGroup
impl Serialize for CreateResourceGroup
Source§impl Spanned for CreateResourceGroup
impl Spanned for CreateResourceGroup
impl StructuralPartialEq for CreateResourceGroup
Auto Trait Implementations§
impl Freeze for CreateResourceGroup
impl RefUnwindSafe for CreateResourceGroup
impl Send for CreateResourceGroup
impl Sync for CreateResourceGroup
impl Unpin for CreateResourceGroup
impl UnsafeUnpin for CreateResourceGroup
impl UnwindSafe for CreateResourceGroup
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> DynAstExt for T
impl<T> DynAstExt for T
Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&dyn Any for downcasting a node back to its concrete type.Source§fn dyn_clone(&self) -> Box<dyn DynAstExt>
fn dyn_clone(&self) -> Box<dyn DynAstExt>
Clone (whose
Self-returning signature cannot go through a vtable).Source§fn dyn_eq(&self, other: &dyn DynAstExt) -> bool
fn dyn_eq(&self, other: &dyn DynAstExt) -> bool
PartialEq (whose &Self argument cannot go through a vtable). Equal
iff other holds the same concrete type and that type deems the values
equal; differently-typed nodes are never equal.