pub struct EnvironmentId {
pub uuid: Uuid,
}Expand description
Native counterpart of golem:core/types@2.0.0::environment-id.
Fields§
§uuid: UuidImplementations§
Source§impl EnvironmentId
impl EnvironmentId
pub fn new(uuid: Uuid) -> EnvironmentId
Trait Implementations§
Source§impl Clone for EnvironmentId
impl Clone for EnvironmentId
Source§fn clone(&self) -> EnvironmentId
fn clone(&self) -> EnvironmentId
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 EnvironmentId
impl Debug for EnvironmentId
Source§impl<'de> Deserialize<'de> for EnvironmentId
impl<'de> Deserialize<'de> for EnvironmentId
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EnvironmentId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EnvironmentId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EnvironmentId
Source§impl From<&EnvironmentId> for EnvironmentId
impl From<&EnvironmentId> for EnvironmentId
Source§fn from(value: &EnvironmentId) -> EnvironmentId
fn from(value: &EnvironmentId) -> EnvironmentId
Converts to this type from the input type.
Source§impl From<&EnvironmentId> for EnvironmentId
impl From<&EnvironmentId> for EnvironmentId
Source§fn from(value: &EnvironmentId) -> EnvironmentId
fn from(value: &EnvironmentId) -> EnvironmentId
Converts to this type from the input type.
Source§impl From<EnvironmentId> for Uuid
impl From<EnvironmentId> for Uuid
Source§fn from(value: EnvironmentId) -> Uuid
fn from(value: EnvironmentId) -> Uuid
Converts to this type from the input type.
Source§impl From<EnvironmentId> for EnvironmentId
impl From<EnvironmentId> for EnvironmentId
Source§fn from(value: EnvironmentId) -> EnvironmentId
fn from(value: EnvironmentId) -> EnvironmentId
Converts to this type from the input type.
Source§impl From<EnvironmentId> for EnvironmentId
impl From<EnvironmentId> for EnvironmentId
Source§fn from(value: EnvironmentId) -> EnvironmentId
fn from(value: EnvironmentId) -> EnvironmentId
Converts to this type from the input type.
Source§impl From<Uuid> for EnvironmentId
impl From<Uuid> for EnvironmentId
Source§fn from(uuid: Uuid) -> EnvironmentId
fn from(uuid: Uuid) -> EnvironmentId
Converts to this type from the input type.
Source§impl FromSchema for EnvironmentId
impl FromSchema for EnvironmentId
fn from_value(value: &SchemaValue) -> Result<EnvironmentId, FromSchemaError>
Source§impl FromWire for EnvironmentId
impl FromWire for EnvironmentId
fn read_wire( reader: &mut WireReader, index: i32, ) -> Result<EnvironmentId, WireError>
fn read_result_payload( reader: &mut WireReader, index: Option<i32>, ) -> Result<Self, WireError>
Source§impl Hash for EnvironmentId
impl Hash for EnvironmentId
Source§impl IntoSchema for EnvironmentId
impl IntoSchema for EnvironmentId
fn type_id() -> TypeId
fn register_in(builder: &mut SchemaBuilder) -> SchemaType
fn to_value(&self) -> SchemaValue
Source§impl IntoWire for EnvironmentId
impl IntoWire for EnvironmentId
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 EnvironmentId
impl Ord for EnvironmentId
Source§fn cmp(&self, other: &EnvironmentId) -> Ordering
fn cmp(&self, other: &EnvironmentId) -> 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 EnvironmentId
impl PartialEq for EnvironmentId
Source§impl PartialOrd for EnvironmentId
impl PartialOrd for EnvironmentId
Source§impl Serialize for EnvironmentId
impl Serialize for EnvironmentId
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 EnvironmentId
Source§impl WireSchema for EnvironmentId
impl WireSchema for EnvironmentId
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 EnvironmentId
impl RefUnwindSafe for EnvironmentId
impl Send for EnvironmentId
impl Sync for EnvironmentId
impl Unpin for EnvironmentId
impl UnsafeUnpin for EnvironmentId
impl UnwindSafe for EnvironmentId
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