pub struct WordPressBlockJson { /* private fields */ }Expand description
WordPress block.json-oriented metadata.
Implementations§
Source§impl WordPressBlockJson
impl WordPressBlockJson
pub fn new(name: WordPressBlockName) -> Self
pub fn with_category(self, category: WordPressBlockCategory) -> Self
pub fn with_attribute(self, attribute: WordPressBlockAttribute) -> Self
pub fn with_support(self, support: WordPressBlockSupport) -> Self
pub fn with_render(self, render: WordPressBlockAssetPath) -> Self
pub const fn name(&self) -> &WordPressBlockName
pub const fn category(&self) -> Option<&WordPressBlockCategory>
pub fn attributes(&self) -> &[WordPressBlockAttribute]
pub fn supports(&self) -> &[WordPressBlockSupport]
pub const fn render(&self) -> Option<&WordPressBlockAssetPath>
Trait Implementations§
Source§impl Clone for WordPressBlockJson
impl Clone for WordPressBlockJson
Source§fn clone(&self) -> WordPressBlockJson
fn clone(&self) -> WordPressBlockJson
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 WordPressBlockJson
impl Debug for WordPressBlockJson
Source§impl PartialEq for WordPressBlockJson
impl PartialEq for WordPressBlockJson
Source§fn eq(&self, other: &WordPressBlockJson) -> bool
fn eq(&self, other: &WordPressBlockJson) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for WordPressBlockJson
impl StructuralPartialEq for WordPressBlockJson
Auto Trait Implementations§
impl Freeze for WordPressBlockJson
impl RefUnwindSafe for WordPressBlockJson
impl Send for WordPressBlockJson
impl Sync for WordPressBlockJson
impl Unpin for WordPressBlockJson
impl UnsafeUnpin for WordPressBlockJson
impl UnwindSafe for WordPressBlockJson
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