pub struct AssertUser {
pub user: String,
pub display_name: String,
pub client_endpoint: String,
pub item: String,
pub scope: TokenScope,
pub preferences: Option<TrackPreferences>,
pub download: Option<String>,
}Expand description
The home server vouches for its local user, who wants item of the
item’s server on the device client_endpoint. Answered with Token, or
AssertionRefused.
Fields§
§user: StringThe user’s stable id on the home server: a UUID, never a portable user’s id.
display_name: StringAlways empty: a server never sends its users’ names to another,
which knows them by user alone. Kept for the wire; what a server
reads of it is cut to crate::MAX_HELLO_TEXT characters.
client_endpoint: StringThe device’s endpoint id, hex: the only one the token works from.
item: StringThe item, by the item’s server’s own id (what the home server’s
fed: id carries).
scope: TokenScopeWhat the token is for; a play when left out.
preferences: Option<TrackPreferences>The user’s track preferences on the home server: what the item’s server chooses the audio and subtitles by when the play sends no selection, as the home server would. Left out, the item’s server uses its defaults.
download: Option<String>A download token’s one download, by the item’s server’s id: what the device’s own token reads. Left out, the token’s session prepares the item’s download itself (the home server’s own download, which keeps the record).
Implementations§
Source§impl AssertUser
impl AssertUser
Sourcepub fn within_bounds(self) -> Self
pub fn within_bounds(self) -> Self
This assertion with its name cut to crate::MAX_HELLO_TEXT
characters: what a server reads of it.