pub enum DavProperty {
Etag,
ContentLength,
ContentType,
ResourceType,
LastModified,
DisplayName,
FileId,
Permissions,
HasPreview,
}Expand description
A property a propfind request may ask for.
The set is deliberately the one DavResource can
represent: asking for a property nothing decodes would only cost bytes.
Variants§
Etag
d:getetag — entity tag of the current content.
ContentLength
d:getcontentlength — size in bytes.
ContentType
d:getcontenttype — MIME type.
ResourceType
d:resourcetype — collection marker.
LastModified
d:getlastmodified — modification time, as an HTTP date.
DisplayName
d:displayname — user-visible name.
FileId
oc:fileid — Nextcloud’s stable file id.
Permissions
oc:permissions — permission letters for this resource.
HasPreview
nc:has-preview — whether a preview can be rendered.
Implementations§
Source§impl DavProperty
impl DavProperty
Sourcepub const fn namespace(self) -> DavNamespace
pub const fn namespace(self) -> DavNamespace
Namespace the property is defined in.
Sourcepub const fn local_name(self) -> &'static str
pub const fn local_name(self) -> &'static str
Local part of the property name, without prefix.
Sourcepub const fn qualified_name(self) -> &'static str
pub const fn qualified_name(self) -> &'static str
Qualified name used in both request and response XML.
Spelled out rather than assembled from
namespace and local_name
because it has to stay a &'static str; the unit tests assert the
three stay consistent.