pub struct PageVerificationProperty {
pub id: Option<String>,
pub verification: PageVerificationPropertyParameter,
}
Expand description
https://developers.notion.com/reference/page-property-values#verification
The verification status of a page in a wiki database. Pages can be verified or unverified, and verifications can have an optional expiration date set.
The verification status cannot currently be set or updated via the public API.
$.['*'].state
: The verification state of the page."verified"
or"unverified"
.$.['*'].verified_by
: Always"url"
$.['*'].date?
: If the page if verified, a User object will be included to indicate the user who verified the page. If an expiration date is set for the verification, an end date (end) will be included.
Note: The ['*']
part represents the column name you set when creating the database.
Fields§
§id: Option<String>
§verification: PageVerificationPropertyParameter
Implementations§
Source§impl PageVerificationProperty
impl PageVerificationProperty
Sourcepub fn verification(
self,
verification: PageVerificationPropertyParameter,
) -> Self
pub fn verification( self, verification: PageVerificationPropertyParameter, ) -> Self
Set the value of the verification
field.
Source§impl PageVerificationProperty
impl PageVerificationProperty
pub fn state(&mut self, state: PageVerificationState) -> &mut Self
pub fn verified_by(&mut self, verified_by: User) -> &mut Self
pub fn date(&mut self, date: PageVerificationDate) -> &mut Self
Trait Implementations§
Source§impl Clone for PageVerificationProperty
impl Clone for PageVerificationProperty
Source§fn clone(&self) -> PageVerificationProperty
fn clone(&self) -> PageVerificationProperty
Returns a duplicate of the value. Read more
1.0.0 · 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 PageVerificationProperty
impl Debug for PageVerificationProperty
Source§impl Default for PageVerificationProperty
impl Default for PageVerificationProperty
Source§fn default() -> PageVerificationProperty
fn default() -> PageVerificationProperty
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PageVerificationProperty
impl<'de> Deserialize<'de> for PageVerificationProperty
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 Display for PageVerificationProperty
impl Display for PageVerificationProperty
Source§impl PartialEq for PageVerificationProperty
impl PartialEq for PageVerificationProperty
Source§impl Serialize for PageVerificationProperty
impl Serialize for PageVerificationProperty
impl StructuralPartialEq for PageVerificationProperty
Auto Trait Implementations§
impl Freeze for PageVerificationProperty
impl RefUnwindSafe for PageVerificationProperty
impl Send for PageVerificationProperty
impl Sync for PageVerificationProperty
impl Unpin for PageVerificationProperty
impl UnwindSafe for PageVerificationProperty
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