pub struct DynamicPageUpdate { /* private fields */ }Expand description
Versioned, checksum-verified page-level dynamic update payload (overrides or injects a route).
Implementations§
Source§impl DynamicPageUpdate
Signing and JSON serialization helpers for DynamicPageUpdate.
impl DynamicPageUpdate
Signing and JSON serialization helpers for DynamicPageUpdate.
Sourcepub fn sign(&mut self) -> &mut DynamicPageUpdate
pub fn sign(&mut self) -> &mut DynamicPageUpdate
Sourcepub fn to_json(&self) -> Result<String, DynamicUpdateError>
pub fn to_json(&self) -> Result<String, DynamicUpdateError>
Sourcepub fn from_json(raw: &str) -> Result<DynamicPageUpdate, DynamicUpdateError>
pub fn from_json(raw: &str) -> Result<DynamicPageUpdate, DynamicUpdateError>
Source§impl DynamicPageUpdate
impl DynamicPageUpdate
pub fn get_route(&self) -> &String
pub fn get_mut_route(&mut self) -> &mut String
pub fn set_route(&mut self, val: String) -> &mut DynamicPageUpdate
pub fn get_title(&self) -> &String
pub fn get_mut_title(&mut self) -> &mut String
pub fn set_title(&mut self, val: String) -> &mut DynamicPageUpdate
pub fn get_version(&self) -> u64
pub fn get_mut_version(&mut self) -> &mut u64
pub fn set_version(&mut self, val: u64) -> &mut DynamicPageUpdate
pub fn get_spec(&self) -> &DynamicNodeSpec
pub fn get_mut_spec(&mut self) -> &mut DynamicNodeSpec
pub fn set_spec(&mut self, val: DynamicNodeSpec) -> &mut DynamicPageUpdate
pub fn get_checksum(&self) -> u64
pub fn get_mut_checksum(&mut self) -> &mut u64
pub fn set_checksum(&mut self, val: u64) -> &mut DynamicPageUpdate
pub fn get_preserve_state(&self) -> bool
pub fn get_mut_preserve_state(&mut self) -> &mut bool
pub fn set_preserve_state(&mut self, val: bool) -> &mut DynamicPageUpdate
pub fn get_allow_downgrade(&self) -> bool
pub fn get_mut_allow_downgrade(&mut self) -> &mut bool
pub fn set_allow_downgrade(&mut self, val: bool) -> &mut DynamicPageUpdate
Source§impl DynamicPageUpdate
impl DynamicPageUpdate
pub fn new( route: String, title: String, version: u64, spec: DynamicNodeSpec, ) -> DynamicPageUpdate
Trait Implementations§
Source§impl Clone for DynamicPageUpdate
impl Clone for DynamicPageUpdate
Source§fn clone(&self) -> DynamicPageUpdate
fn clone(&self) -> DynamicPageUpdate
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 DynamicPageUpdate
impl Debug for DynamicPageUpdate
Source§impl<'de> Deserialize<'de> for DynamicPageUpdate
impl<'de> Deserialize<'de> for DynamicPageUpdate
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DynamicPageUpdate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DynamicPageUpdate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DynamicPageUpdate
impl PartialEq for DynamicPageUpdate
Source§impl Serialize for DynamicPageUpdate
impl Serialize for DynamicPageUpdate
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 DynamicPageUpdate
Auto Trait Implementations§
impl Forget for DynamicPageUpdate
impl Freeze for DynamicPageUpdate
impl Move for DynamicPageUpdate
impl RefUnwindSafe for DynamicPageUpdate
impl Send for DynamicPageUpdatewhere
RawVecInner: Send,
impl Sync for DynamicPageUpdatewhere
RawVecInner: Sync,
impl Unpin for DynamicPageUpdate
impl UnsafeUnpin for DynamicPageUpdatewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<DynamicNodeSpec>: UnsafeUnpin,
impl UnwindSafe for DynamicPageUpdatewhere
RawVecInner: UnwindSafe,
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