pub struct AuthorizedConfigurationV1 {
pub configuration: Configuration,
pub signature: Signature,
}Fields§
§configuration: Configuration§signature: SignatureImplementations§
Source§impl AuthorizedConfigurationV1
impl AuthorizedConfigurationV1
pub fn new(configuration: Configuration, owner_signing_key: &SigningKey) -> Self
Sourcepub fn with_signature(
configuration: Configuration,
signature: Signature,
) -> Self
pub fn with_signature( configuration: Configuration, signature: Signature, ) -> Self
Create an AuthorizedConfigurationV1 with a pre-computed signature. Use this when signing is done externally (e.g., via delegate).
pub fn verify_signature( &self, owner_verifying_key: &VerifyingKey, ) -> Result<(), SignatureError>
pub fn id(&self) -> FastHash
Trait Implementations§
Source§impl Clone for AuthorizedConfigurationV1
impl Clone for AuthorizedConfigurationV1
Source§fn clone(&self) -> AuthorizedConfigurationV1
fn clone(&self) -> AuthorizedConfigurationV1
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 ComposableState for AuthorizedConfigurationV1
impl ComposableState for AuthorizedConfigurationV1
type ParentState = ChatRoomStateV1
type Summary = u32
type Delta = AuthorizedConfigurationV1
type Parameters = ChatRoomParametersV1
fn verify( &self, _parent_state: &Self::ParentState, parameters: &Self::Parameters, ) -> Result<(), String>
fn summarize( &self, _parent_state: &Self::ParentState, _parameters: &Self::Parameters, ) -> Self::Summary
fn delta( &self, _parent_state: &Self::ParentState, _parameters: &Self::Parameters, old_version: &Self::Summary, ) -> Option<Self::Delta>
Source§fn apply_delta(
&mut self,
_parent_state: &Self::ParentState,
parameters: &Self::Parameters,
delta: &Option<Self::Delta>,
) -> Result<(), String>
fn apply_delta( &mut self, _parent_state: &Self::ParentState, parameters: &Self::Parameters, delta: &Option<Self::Delta>, ) -> Result<(), String>
Applies the specified
delta to the current state. Read moreSource§fn merge(
&mut self,
parent_state: &Self::ParentState,
parameters: &Self::Parameters,
other_state: &Self,
) -> Result<(), String>
fn merge( &mut self, parent_state: &Self::ParentState, parameters: &Self::Parameters, other_state: &Self, ) -> Result<(), String>
Merges the current state with another state.
Source§impl Debug for AuthorizedConfigurationV1
impl Debug for AuthorizedConfigurationV1
Source§impl Default for AuthorizedConfigurationV1
impl Default for AuthorizedConfigurationV1
Source§impl<'de> Deserialize<'de> for AuthorizedConfigurationV1
impl<'de> Deserialize<'de> for AuthorizedConfigurationV1
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AuthorizedConfigurationV1
impl PartialEq for AuthorizedConfigurationV1
Source§fn eq(&self, other: &AuthorizedConfigurationV1) -> bool
fn eq(&self, other: &AuthorizedConfigurationV1) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AuthorizedConfigurationV1
Auto Trait Implementations§
impl Freeze for AuthorizedConfigurationV1
impl RefUnwindSafe for AuthorizedConfigurationV1
impl Send for AuthorizedConfigurationV1
impl Sync for AuthorizedConfigurationV1
impl Unpin for AuthorizedConfigurationV1
impl UnsafeUnpin for AuthorizedConfigurationV1
impl UnwindSafe for AuthorizedConfigurationV1
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