pub struct Attribute {
pub id: u32,
pub name: &'static str,
pub ty: Type,
pub list: bool,
pub nullable: bool,
pub optional: bool,
pub writable: bool,
pub timed_write: bool,
}Expand description
An attribute of a cluster.
Fields§
§id: u32Attribute id.
name: &'static strIDL name, lowerCamelCase.
ty: TypeValue type (of each element, for a list).
list: boolWhether the value is a list of ty.
nullable: boolWhether the value can be null.
optional: boolWhether a server may leave the attribute out.
writable: boolWhether a client may write it.
timed_write: boolWhether a write must be timed.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Attribute
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnsafeUnpin for Attribute
impl UnwindSafe for Attribute
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
§impl<T> Init<T> for T
impl<T> Init<T> for T
§impl<T, I> IntoFallibleInit<T> for Iwhere
I: Init<T>,
impl<T, I> IntoFallibleInit<T> for Iwhere
I: Init<T>,
§fn into_fallible<E>(self) -> impl Init<T, E>
fn into_fallible<E>(self) -> impl Init<T, E>
Convert the infallible initializer to a fallible one.