pub struct String<'a> {
pub contents: CowStr<'a>,
pub created_at: Datetime,
pub description: CowStr<'a>,
pub filename: CowStr<'a>,
pub extra_data: BTreeMap<SmolStr, Data<'a>>,
}Fields§
§contents: CowStr<'a>§created_at: Datetime§description: CowStr<'a>§filename: CowStr<'a>§extra_data: BTreeMap<SmolStr, Data<'a>>Trait Implementations§
Source§impl Collection for String<'_>
impl Collection for String<'_>
Source§const NSID: &'static str = "sh.tangled.string"
const NSID: &'static str = "sh.tangled.string"
The NSID for the Lexicon that defines the schema of records in this collection.
Source§type Record = StringRecord
type Record = StringRecord
A marker type implementing
XrpcResp that allows typed deserialization of records
from this collection. Used by [Agent::get_record] to return properly typed responses.Source§impl<'de: 'a, 'a> Deserialize<'de> for String<'a>
impl<'de: 'a, 'a> Deserialize<'de> for String<'a>
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 From<StringGetRecordOutput<'_>> for String<'_>
impl From<StringGetRecordOutput<'_>> for String<'_>
Source§fn from(output: StringGetRecordOutput<'_>) -> Self
fn from(output: StringGetRecordOutput<'_>) -> Self
Converts to this type from the input type.
Source§impl<'a> IntoStatic for String<'a>
impl<'a> IntoStatic for String<'a>
impl<'a> Eq for String<'a>
impl<'a> StructuralPartialEq for String<'a>
Auto Trait Implementations§
impl<'a> Freeze for String<'a>
impl<'a> RefUnwindSafe for String<'a>
impl<'a> Send for String<'a>
impl<'a> Sync for String<'a>
impl<'a> Unpin for String<'a>
impl<'a> UnwindSafe for String<'a>
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.