pub struct Signer<'a> {
pub key: &'a SigningKey,
pub hlc_node: String,
pub worker_id: String,
}Expand description
Who signs: the instance key (workspace places) or an alias key, with the
matching HLC node and worker id. Production paths build it with
Signer::workspace or Signer::alias, never field by field: the
maintain CLI once set hlc.node to the raw inst_<hex> id and Cloud
refused every event (invalid_event shape /hlc/node, dogfood 25.10.).
Fields§
§key: &'a SigningKey§hlc_node: String§worker_id: StringImplementations§
Source§impl<'a> Signer<'a>
impl<'a> Signer<'a>
Sourcepub fn workspace(
key: &'a SigningKey,
instance_id: &str,
worker_id: &str,
) -> Self
pub fn workspace( key: &'a SigningKey, instance_id: &str, worker_id: &str, ) -> Self
A workspace place’s signer: the instance key, and as hlc.node the
instance id as C0 2.0 names it (the hyphenated UUID; a 1.x enrolment
stores inst_<32 hex>, which the event schema refuses).
Sourcepub fn alias(
alias_key: &'a SigningKey,
keys: &InstanceKeys,
place_ref: &str,
worker_id: &str,
) -> Self
pub fn alias( alias_key: &'a SigningKey, keys: &InstanceKeys, place_ref: &str, worker_id: &str, ) -> Self
An alias signer (alias places, R38): the alias key of
place_ref and its keyed 16-hex hlc.node.
Auto Trait Implementations§
impl<'a> Forget for Signer<'a>
impl<'a> Freeze for Signer<'a>
impl<'a> Move for Signer<'a>
impl<'a> RefUnwindSafe for Signer<'a>
impl<'a> Send for Signer<'a>
impl<'a> Sync for Signer<'a>
impl<'a> Unpin for Signer<'a>
impl<'a> UnsafeUnpin for Signer<'a>
impl<'a> UnwindSafe for Signer<'a>
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
Converts
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> ⓘ
Converts
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