pub struct FieldSurface {
pub path: String,
pub owner: String,
pub title: String,
pub stored: String,
pub ty: FieldType,
pub readonly: bool,
pub unit: bool,
pub label: bool,
pub whole: bool,
pub ops: Option<Value>,
}Expand description
One stored field.
Fields§
§path: StringWhere it is: stored keys from the root, * for every item of a
collection (snippets.*.title).
owner: StringThe record type it belongs to, kebab case.
title: String§stored: StringHow it is stored: value (left out of a surface file), record or
collection.
ty: FieldTypeIts type (FieldType); a surface file written before the
vocabulary holds its Rust type’s text, read as
FieldType::from_rust_text.
readonly: bool§unit: bool§label: bool§whole: boolSet only whole: a change inside it could weaken the person’s security,
so its setter takes no edit inside it (Surface::with_setters).
ops: Option<Value>The schema of the field’s own operations, for a type with its own vocabulary (rich text).
Trait Implementations§
Source§impl Clone for FieldSurface
impl Clone for FieldSurface
Source§impl Debug for FieldSurface
impl Debug for FieldSurface
Source§impl<'de> Deserialize<'de> for FieldSurface
impl<'de> Deserialize<'de> for FieldSurface
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
impl Eq for FieldSurface
Source§impl PartialEq for FieldSurface
impl PartialEq for FieldSurface
Source§impl Serialize for FieldSurface
impl Serialize for FieldSurface
impl StructuralPartialEq for FieldSurface
Auto Trait Implementations§
impl Forget for FieldSurface
impl Freeze for FieldSurface
impl Move for FieldSurface
impl RefUnwindSafe for FieldSurface
impl Send for FieldSurface
impl Sync for FieldSurface
impl Unpin for FieldSurface
impl UnsafeUnpin for FieldSurface
impl UnwindSafe for FieldSurface
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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