pub struct ComponentId {
pub uuid: Uuid,
}Expand description
Native counterpart of golem:core/types@2.0.0::component-id.
Fields§
§uuid: UuidImplementations§
Source§impl ComponentId
impl ComponentId
pub fn new(uuid: Uuid) -> ComponentId
Trait Implementations§
Source§impl Clone for ComponentId
impl Clone for ComponentId
Source§fn clone(&self) -> ComponentId
fn clone(&self) -> ComponentId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ComponentId
impl Debug for ComponentId
Source§impl<'de> Deserialize<'de> for ComponentId
impl<'de> Deserialize<'de> for ComponentId
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ComponentId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ComponentId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ComponentId
Source§impl From<&ComponentId> for ComponentId
impl From<&ComponentId> for ComponentId
Source§fn from(value: &ComponentId) -> ComponentId
fn from(value: &ComponentId) -> ComponentId
Converts to this type from the input type.
Source§impl From<&ComponentId> for ComponentId
impl From<&ComponentId> for ComponentId
Source§fn from(value: &ComponentId) -> ComponentId
fn from(value: &ComponentId) -> ComponentId
Converts to this type from the input type.
Source§impl From<ComponentId> for Uuid
impl From<ComponentId> for Uuid
Source§fn from(value: ComponentId) -> Uuid
fn from(value: ComponentId) -> Uuid
Converts to this type from the input type.
Source§impl From<ComponentId> for ComponentId
impl From<ComponentId> for ComponentId
Source§fn from(value: ComponentId) -> ComponentId
fn from(value: ComponentId) -> ComponentId
Converts to this type from the input type.
Source§impl From<ComponentId> for ComponentId
impl From<ComponentId> for ComponentId
Source§fn from(value: ComponentId) -> ComponentId
fn from(value: ComponentId) -> ComponentId
Converts to this type from the input type.
Source§impl From<Uuid> for ComponentId
impl From<Uuid> for ComponentId
Source§fn from(uuid: Uuid) -> ComponentId
fn from(uuid: Uuid) -> ComponentId
Converts to this type from the input type.
Source§impl FromSchema for ComponentId
impl FromSchema for ComponentId
fn from_value(value: &SchemaValue) -> Result<ComponentId, FromSchemaError>
Source§impl FromWire for ComponentId
impl FromWire for ComponentId
fn read_wire( reader: &mut WireReader, index: i32, ) -> Result<ComponentId, WireError>
fn read_result_payload( reader: &mut WireReader, index: Option<i32>, ) -> Result<Self, WireError>
Source§impl Hash for ComponentId
impl Hash for ComponentId
Source§impl IntoSchema for ComponentId
impl IntoSchema for ComponentId
fn type_id() -> TypeId
fn register_in(builder: &mut SchemaBuilder) -> SchemaType
fn to_value(&self) -> SchemaValue
Source§impl IntoWire for ComponentId
impl IntoWire for ComponentId
fn preflight(&self, resources: &mut WirePreflight) -> Result<(), WireError>
Source§async fn prepare_wire(&self) -> Result<(), WireError>
async fn prepare_wire(&self) -> Result<(), WireError>
Wrap native stream endpoints without reading from them. This is called
only after the complete value has passed resource preflight.
fn write_wire(&self, writer: &mut WireWriter) -> Result<i32, WireError>
Source§const NEEDS_PREPARATION: bool = true
const NEEDS_PREPARATION: bool = true
False only when
prepare_wire is a no-op for every value of this type.
Resource preflight still runs regardless of this flag. Custom and derived
implementations prepare by default, including those with no stream schema.fn write_result_payload( &self, writer: &mut WireWriter, ) -> Result<Option<i32>, WireError>
Source§impl Ord for ComponentId
impl Ord for ComponentId
Source§fn cmp(&self, other: &ComponentId) -> Ordering
fn cmp(&self, other: &ComponentId) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ComponentId
impl PartialEq for ComponentId
Source§impl PartialOrd for ComponentId
impl PartialOrd for ComponentId
Source§impl Serialize for ComponentId
impl Serialize for ComponentId
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ComponentId
Source§impl WireSchema for ComponentId
impl WireSchema for ComponentId
fn contains_stream(seen: &mut HashSet<&'static str>) -> bool
fn append_schema(builder: &mut WireSchemaBuilder) -> i32
fn wire_type_id() -> String
const IS_UNIT: bool = false
Auto Trait Implementations§
impl Freeze for ComponentId
impl RefUnwindSafe for ComponentId
impl Send for ComponentId
impl Sync for ComponentId
impl Unpin for ComponentId
impl UnsafeUnpin for ComponentId
impl UnwindSafe for ComponentId
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